requests / requests-oauthlib

OAuthlib support for Python-Requests!
https://requests-oauthlib.readthedocs.org/
ISC License
1.71k stars 422 forks source link

Don't pass 'files' through to token refresh #427

Closed remko closed 2 years ago

remko commented 3 years ago

When using the files parameter in requests for multipart file uploads, and a token needs to be refreshed, the files are passed along with the refresh token request.

This pull request only passes files to the actual request (as is the case with data).

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 90.164% when pulling ea71577b55489feeb06e3aa7c34c8f19effd02aa on remko:master into 46f886ccb74652fc9c850ece960edcf2bce765a5 on requests:master.

JonathanHuot commented 2 years ago

LGTM