worker: use custom requester also for oauth refresh
Just so we can share e.g. proxy server or other http transport settings. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
71a4ceecaa
commit
9ee3997428
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ func (c *Client) refreshAccessToken() error {
|
|||
data.Set("client_secret", c.clientSecret)
|
||||
}
|
||||
|
||||
resp, err := http.PostForm(c.oAuthURL, data)
|
||||
resp, err := c.requester.PostForm(c.oAuthURL, data)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue