Use the product token for the user agent in more locations (#7378)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user