in elastictransport/elastictransport.go [527:537]
func (c *Client) setReqUserAgent(req *http.Request) *http.Request {
if len(c.header) > 0 {
ua := c.header.Get(userAgentHeader)
if ua != "" {
req.Header.Set(userAgentHeader, ua)
return req
}
}
req.Header.Set(userAgentHeader, c.userAgent)
return req
}