http-client user-agent设置为golang/cron-scheduler

pull/21/merge
ouqiang 2017-04-03 18:07:52 +08:00
parent c3f85f83cf
commit a6aeb5a916
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func (h *HTTPHandler) Run(taskModel models.Task) (result string, err error) {
return
}
req.Header.Set("Content-type", "application/x-www-form-urlencoded")
req.Header.Set("User-Agent", "golang-cron/scheduler")
req.Header.Set("User-Agent", "golang/cron-scheduler")
resp, err := client.Do(req)
defer func() {