diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-06-08 22:09:12 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-06-08 22:09:12 -0600 |
commit | feb3bd824a829df15c243e37dd77440596469ec3 (patch) | |
tree | 2987dab769767925dc29586dd3fae0aba5207140 /cmd | |
parent | 59fc2f61810542eb702738dddd921fd06e3707a3 (diff) |
httpcache: Set User-Agent
Diffstat (limited to 'cmd')
-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) } |