From feb3bd824a829df15c243e37dd77440596469ec3 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 8 Jun 2024 22:09:12 -0600 Subject: httpcache: Set User-Agent --- cmd/generate/httpcache.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/generate/httpcache.go') 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) } -- cgit v1.2.3-54-g00ecf