logclient: don't send User-Agent
This commit is contained in:
parent
936a1ca8ed
commit
5365450965
|
@ -188,6 +188,7 @@ retry:
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%s %s: error creating request: %w", method, uri, err)
|
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)
|
resp, err := c.httpClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if c.shouldRetry(ctx, numRetries, nil) {
|
if c.shouldRetry(ctx, numRetries, nil) {
|
||||||
|
|
Loading…
Reference in New Issue