Skip to content

Commit 2113a70

Browse files
authored
Merge pull request #427 from remko/master
Don't pass 'files' through to token refresh
2 parents bc61703 + ea71577 commit 2113a70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

requests_oauthlib/oauth2_session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ def request(
478478
withhold_token=False,
479479
client_id=None,
480480
client_secret=None,
481+
files=None,
481482
**kwargs
482483
):
483484
"""Intercept all requests and add the OAuth 2 token if present."""
@@ -533,7 +534,7 @@ def request(
533534
log.debug("Supplying headers %s and data %s", headers, data)
534535
log.debug("Passing through key word arguments %s.", kwargs)
535536
return super(OAuth2Session, self).request(
536-
method, url, headers=headers, data=data, **kwargs
537+
method, url, headers=headers, data=data, files=files, **kwargs
537538
)
538539

539540
def register_compliance_hook(self, hook_type, hook):

0 commit comments

Comments
 (0)