add proper Content-Type header
This commit is contained in:
parent
de4a4a8643
commit
0427121975
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user