mirror of
https://bitbucket.org/skobkin/point-tools-crawler.git
synced 2024-12-04 18:25:52 +00:00
client.go POST requests fixed.
This commit is contained in:
parent
602552baf9
commit
6e2664d6d3
|
@ -80,6 +80,9 @@ func (c *Client) MakePostRequest(url string, params url.Values) ([]byte, error)
|
|||
req.Header.Set("Authorization", c.token.AuthToken)
|
||||
}
|
||||
|
||||
// Adding necessary for POST request header
|
||||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
|
||||
resp, resp_err := hc.Do(req)
|
||||
|
||||
if resp_err != nil {
|
||||
|
|
Loading…
Reference in a new issue