You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The request() method in the Client class in oauth2/__init__py has this statement:
is_multipart = method == 'POST' and headers.get('Content-Type', DEFAULT_CONTENT_TYPE) != DEFAULT_CONTENT_TYPE
This means that content-types like "application/x-www-form-urlencoded; charset=utf-8" will make is_multipart evaluate to True. Can it be changed to something like this please?
is_multipart = method == 'POST' and not headers.get('Content-Type', DEFAULT_CONTENT_TYPE).startswith(DEFAULT_CONTENT_TYPE)
Thanks
The text was updated successfully, but these errors were encountered:
The request() method in the Client class in oauth2/__init__py has this statement:
is_multipart = method == 'POST' and headers.get('Content-Type', DEFAULT_CONTENT_TYPE) != DEFAULT_CONTENT_TYPE
This means that content-types like "application/x-www-form-urlencoded; charset=utf-8" will make is_multipart evaluate to True. Can it be changed to something like this please?
is_multipart = method == 'POST' and not headers.get('Content-Type', DEFAULT_CONTENT_TYPE).startswith(DEFAULT_CONTENT_TYPE)
Thanks
The text was updated successfully, but these errors were encountered: