diff --git a/requests.go b/requests.go index fd7bbea..17b5515 100644 --- a/requests.go +++ b/requests.go @@ -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) }