diff options
Diffstat (limited to 'cmd/generate/httpcache.go')
-rw-r--r-- | cmd/generate/httpcache.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/generate/httpcache.go b/cmd/generate/httpcache.go index 2192737..6d663b7 100644 --- a/cmd/generate/httpcache.go +++ b/cmd/generate/httpcache.go @@ -72,6 +72,7 @@ func httpGet(u string, hdr map[string]string) (string, error) { httpCache[cacheKey] = httpCacheEntry{Err: err} return "", err } + req.Header.Set("User-Agent", "https://git.lukeshu.com/www/tree/cmd/generate") for k, v := range hdr { req.Header.Add(k, v) } |