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

@@ -486,7 +486,7 @@ func (s *Solr) gatherData(url string, v interface{}) error {
req.SetBasicAuth(s.Username, s.Password)
}
req.Header.Set("User-Agent", "Telegraf/"+internal.Version())
req.Header.Set("User-Agent", internal.ProductToken())
r, err := s.client.Do(req)
if err != nil {