diff --git a/client.go b/client.go index d1a6233..0ea33e7 100644 --- a/client.go +++ b/client.go @@ -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