set a user-agent

This commit is contained in:
Ted Unangst 2019-04-28 17:30:32 -04:00
parent b0b0ad21df
commit 46cc488d19
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ func GetJunk(url string) (map[string]interface{}, error) {
}
req.Header.Set("Accept", at)
req.Header.Set("Accept-Encoding", "gzip")
req.Header.Set("User-Agent", "honksnonk/5.0")
resp, err := client.Do(req)
if err != nil {
return nil, err