Skip to content

Commit

Permalink
Add User-Agent header with QualifiedVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali committed Apr 4, 2022
1 parent 3e6d9de commit c54697b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client_request.go
Expand Up @@ -137,6 +137,8 @@ func (c *Client) sendRequest(req *internalRequest, internalError *Error, respons
request.Header.Set("Authorization", "Bearer "+c.config.APIKey)
}

request.Header.Set("User-Agent", GetQualifiedVersion())

// request is sent
if c.config.Timeout != 0 {
err = c.httpClient.DoTimeout(request, response, c.config.Timeout)
Expand Down

0 comments on commit c54697b

Please sign in to comment.