Skip to content

Commit

Permalink
Merge pull request #77 Do not set X-User-Agent in the request
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm authored Jun 17, 2017
2 parents f709999 + 9391b80 commit 2876b89
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ func parseRequestHeader(c *Client, r *Request) error {

if IsStringEmpty(hdr.Get(hdrUserAgentKey)) {
hdr.Set(hdrUserAgentKey, fmt.Sprintf(hdrUserAgentValue, Version))
} else {
hdr.Set("X-"+hdrUserAgentKey, fmt.Sprintf(hdrUserAgentValue, Version))
}

if IsStringEmpty(hdr.Get(hdrAcceptKey)) && !IsStringEmpty(hdr.Get(hdrContentTypeKey)) {
Expand Down

0 comments on commit 2876b89

Please sign in to comment.