Skip to content

Commit

Permalink
set application/x-protobuf content type on auth client
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Jun 18, 2024
1 parent 8e3387e commit 0d7998e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internalsdk/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewClient(baseURL string, opts *webclient.Opts) AuthClient {
httpClient = &http.Client{}
}
webclient := webclient.NewRESTClient(defaultwebclient.SendToURL(httpClient, baseURL, func(client *resty.Client, req *resty.Request) error {
req.SetHeader(common.ContentType, "application/json")
req.SetHeader(common.ContentType, "application/x-protobuf")
if req.RawRequest.URL != nil && strings.HasPrefix(req.RawRequest.URL.Path, "/users/salt") {
// for the /users/salt, we do not need to set any headers so return right away
return nil
Expand Down

0 comments on commit 0d7998e

Please sign in to comment.