Skip to content

Commit ea71577

Browse files
committed
Don't pass 'files' through to token refresh
1 parent 46f886c commit ea71577

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
@@ -464,6 +464,7 @@ def request(
464464
withhold_token=False,
465465
client_id=None,
466466
client_secret=None,
467+
files=None,
467468
**kwargs
468469
):
469470
"""Intercept all requests and add the OAuth 2 token if present."""
@@ -519,7 +520,7 @@ def request(
519520
log.debug("Supplying headers %s and data %s", headers, data)
520521
log.debug("Passing through key word arguments %s.", kwargs)
521522
return super(OAuth2Session, self).request(
522-
method, url, headers=headers, data=data, **kwargs
523+
method, url, headers=headers, data=data, files=files, **kwargs
523524
)
524525

525526
def register_compliance_hook(self, hook_type, hook):

0 commit comments

Comments
 (0)