fix authorization
This commit is contained in:
parent
a33240e4ab
commit
9ff8e33634
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user