add Content-Type to request header

This commit is contained in:
diPhantxm
2023-03-25 17:18:20 +03:00
parent 3af6ad40c5
commit 18470fcae5
21 changed files with 245 additions and 140 deletions

View File

@@ -56,7 +56,7 @@ func (c Client) newRequest(method string, url string, body interface{}) (*http.R
return req, nil
}
func (c Client) Request(method string, path string, req, resp interface{}) (*Response, error) {
func (c Client) Request(method string, path string, req, resp interface{}, options map[string]string) (*Response, error) {
httpReq, err := c.newRequest(method, path, req)
if err != nil {
return nil, err