content-type

This commit is contained in:
Aliaksandr Pliutau 2015-11-20 14:40:47 +07:00
parent 3e7a00c5d2
commit af3e41b8b7

View File

@ -15,7 +15,7 @@ func (c *Client) GetAccessToken() (*TokenResponse, error) {
}
req.SetBasicAuth(c.ClientID, c.Secret)
req.Header.Set("Content-type", "application/json")
req.Header.Set("Content-type", "application/x-www-form-urlencoded")
t := TokenResponse{}
err = c.Send(req, &t)