Skip to content

Commit

Permalink
set headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft committed Dec 29, 2021
1 parent ae13c27 commit d8eaf88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func (c *Client) sendPOSTRequest(requestURL string, params url.Values) ([]byte,
})
}

// set headers
req.Header.Set("Content-Type", "application/x-www-form-urlencoded;")

// send request
resp, err := httpClient.Do(req)
if err != nil {
Expand Down

0 comments on commit d8eaf88

Please sign in to comment.