diff options
Diffstat (limited to 'fetch.go')
| -rw-r--r-- | fetch.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -24,6 +24,8 @@ func fetch(refURL url.URL) ([]byte, error) { return nil, fmt.Errorf("can't create request: %w", err) } + req.Header.Add("user-agent", "urls/1.0, GNU/Linux") + resp, err := client.Do(req) if err != nil { return nil, fmt.Errorf("client failed: %w", err) |
