Rename tokenRes, fmt
@@ -80,12 +80,12 @@ func (oa *OAuth2) RoundTrip(req *http.Request) (*http.Response, error) {
return nil, couperErr.TokenRequestFailed
}
- resBody, err := ioutil.ReadAll(tokenRes.Body)
+ tokenResBytes, err := ioutil.ReadAll(tokenRes.Body)
if err != nil {
return nil, err
}
- token, err := oa.updateAccessToken(string(resBody), credentials.StorageKey)
+ token, err := oa.updateAccessToken(string(tokenResBytes), credentials.StorageKey)
if err != nil {
return nil, err
}
