Skip to content
Myr

Fix kennethreitz/requests#790

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ayanamist · committed by ayanamist · parent 2d5d6f9 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/auth.py+2 added-1 removed
76 unmodified lines
77 contenttype = r.headers.get('Content-Type', None)78 # extract_params will not give params unless the body is a properly79 # formatted string, a dictionary or a list of 2-tuples.80 decoded_body = extract_params(r.data)81 if (contenttype is None or contenttype.lower() == "application/x-www-form-urlencoded")\81 if contenttype == None and decoded_body != None:82 and decoded_body != None:83 # extract_params can only check the present r.data and does not know84 # of r.files, thus an extra check is performed. We know that85 # if files are present the request will not have86 # Content-type: x-www-form-urlencoded. We guess it will have
292 unmodified lines