Skip to content

Commit

Permalink
fix: default accept header was overriding a manually provided value
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 4, 2024
1 parent 30cfc07 commit d74d80d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/c8y/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,6 @@ func (c *Client) NewRequest(method, path string, query string, body interface{})
}

c.SetAuthorization(req)
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", c.UserAgent)
req.Header.Set("X-APPLICATION", "go-client")
c.SetHostHeader(req)
Expand Down Expand Up @@ -871,7 +870,6 @@ func (c *Client) NewRequestWithoutAuth(method, path string, query string, body i
}
}

req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", c.UserAgent)
req.Header.Set("X-APPLICATION", "go-client")
c.SetHostHeader(req)
Expand Down

0 comments on commit d74d80d

Please sign in to comment.