mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #800 from ayanamist/develop
Fix kennethreitz/requests#790
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@ class OAuth1(AuthBase):
|
||||
# extract_params will not give params unless the body is a properly
|
||||
# formatted string, a dictionary or a list of 2-tuples.
|
||||
decoded_body = extract_params(r.data)
|
||||
if contenttype == None and decoded_body != None:
|
||||
if (contenttype is None or contenttype.lower() == "application/x-www-form-urlencoded")\
|
||||
and decoded_body != None:
|
||||
# extract_params can only check the present r.data and does not know
|
||||
# of r.files, thus an extra check is performed. We know that
|
||||
# if files are present the request will not have
|
||||
|
||||
Reference in New Issue
Block a user