fix authorization

This commit is contained in:
misha-plus 2018-06-10 14:01:51 +05:00 committed by Christoph Polcin
parent a33240e4ab
commit 9ff8e33634

View File

@ -13,14 +13,14 @@ func (c *Client) req(method, path string, body io.Reader, intercept func(*http.R
return nil, err
}
c.auth.Authorize(c, method, path)
for k, vals := range c.headers {
for _, v := range vals {
r.Header.Add(k, v)
}
}
c.auth.Authorize(c, method, path)
if intercept != nil {
intercept(r)
}