Use the product token for the user agent in more locations (#7378)

This commit is contained in:
Daniel Nelson
2020-04-21 10:02:18 -07:00
committed by GitHub
parent c9a3b697b8
commit a4eb9c2205
7 changed files with 15 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ func NewHTTPClient(config *HTTPConfig) (*httpClient, error) {
userAgent := config.UserAgent
if userAgent == "" {
userAgent = "Telegraf/" + internal.Version()
userAgent = internal.ProductToken()
}
var headers = make(map[string]string, len(config.Headers)+2)