diff options
author | tuannh <tuannh99@gmail.com> | 2014-05-29 23:48:01 +0700 |
---|---|---|
committer | tuannh <tuannh99@gmail.com> | 2014-05-29 23:48:01 +0700 |
commit | fd3e25b267f0e3cc239c2bc6dee77dfaf957d09a (patch) | |
tree | 75dfd0d151de72b349567c4beee90cae80158ce1 | |
parent | 14061935013ae20f58995dd2918c009166010bbc (diff) | |
download | oauthlib-fd3e25b267f0e3cc239c2bc6dee77dfaf957d09a.tar.gz |
Accept 'Content-Type: application/x-www-form-urlencoded;charset=utf8' also
-rw-r--r-- | oauthlib/oauth1/rfc5849/endpoints/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/oauth1/rfc5849/endpoints/base.py b/oauthlib/oauth1/rfc5849/endpoints/base.py index b07d4b1..4db2f07 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/base.py +++ b/oauthlib/oauth1/rfc5849/endpoints/base.py @@ -70,7 +70,7 @@ class BaseEndpoint(object): # Only include body data from x-www-form-urlencoded requests headers = headers or {} if ("Content-Type" in headers and - headers["Content-Type"] == CONTENT_TYPE_FORM_URLENCODED): + CONTENT_TYPE_FORM_URLENCODED in headers["Content-Type"]): request = Request(uri, http_method, body, headers) else: request = Request(uri, http_method, '', headers) |