From 5365450965f4a3318044fd85d7bacd22bc42efed Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sun, 29 Jan 2023 13:19:56 -0500 Subject: [PATCH] logclient: don't send User-Agent --- ct/client/logclient.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/client/logclient.go b/ct/client/logclient.go index 51d243e..8e532f2 100644 --- a/ct/client/logclient.go +++ b/ct/client/logclient.go @@ -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) {