logclient: don't send User-Agent

This commit is contained in:
Andrew Ayer 2023-01-29 13:19:56 -05:00
parent 936a1ca8ed
commit 5365450965
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ retry:
if err != nil {
return fmt.Errorf("%s %s: error creating request: %w", method, uri, err)
}
req.Header.Set("User-Agent", "") // Don't send a User-Agent to make life harder for malicious logs
resp, err := c.httpClient.Do(req)
if err != nil {
if c.shouldRetry(ctx, numRetries, nil) {