add proper Content-Type header

This commit is contained in:
Ryan Cavicchioni 2020-03-01 11:23:59 -06:00
parent de4a4a8643
commit 0427121975
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -56,6 +56,7 @@ func (c *Client) NewRequest(method, url string, body io.Reader) (req *http.Reque
return return
} }
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.accessToken)) req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.accessToken))
req.Header.Add("Content-Type", "application/json")
return return
} }