Skip to content

Commit

Permalink
add media type json to our v2 requests (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfuhrer authored Oct 7, 2020
1 parent 4611975 commit 8e4a03a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ func (c *Client) newV2Request(ctx context.Context, method string, url *url.URL,
}
c.setHeaders(req)

req.Header.Set("Content-Type", mediaTypeJSON)
req.Header.Set("Accept", mediaTypeJSON)

req = req.WithContext(ctx)

return req, nil
Expand Down

0 comments on commit 8e4a03a

Please sign in to comment.