summaryrefslogtreecommitdiff
path: root/oauthlib/oauth1/rfc5849/endpoints/base.py
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2019-07-09 17:14:49 +0200
committerGitHub <noreply@github.com>2019-07-09 17:14:49 +0200
commit3de7007c6885f0ac23ff2c56d6a65d8f258600a2 (patch)
tree78215926dc598674ee44eea3c03c0e6e0ca81034 /oauthlib/oauth1/rfc5849/endpoints/base.py
parent75cc688ed923724e1bfe20a2a030ee92a151095e (diff)
parentd7b90fc841694f126ec63500ea8f74330c4672eb (diff)
downloadoauthlib-3de7007c6885f0ac23ff2c56d6a65d8f258600a2.tar.gz
Merge branch 'master' into docs-flows-hooks
Diffstat (limited to 'oauthlib/oauth1/rfc5849/endpoints/base.py')
-rw-r--r--oauthlib/oauth1/rfc5849/endpoints/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/oauth1/rfc5849/endpoints/base.py b/oauthlib/oauth1/rfc5849/endpoints/base.py
index 9702939..ecf8a50 100644
--- a/oauthlib/oauth1/rfc5849/endpoints/base.py
+++ b/oauthlib/oauth1/rfc5849/endpoints/base.py
@@ -10,7 +10,7 @@ from __future__ import absolute_import, unicode_literals
import time
-from oauthlib.common import Request, generate_token
+from oauthlib.common import CaseInsensitiveDict, Request, generate_token
from .. import (CONTENT_TYPE_FORM_URLENCODED, SIGNATURE_HMAC, SIGNATURE_RSA,
SIGNATURE_TYPE_AUTH_HEADER, SIGNATURE_TYPE_BODY,
@@ -67,7 +67,7 @@ class BaseEndpoint(object):
def _create_request(self, uri, http_method, body, headers):
# Only include body data from x-www-form-urlencoded requests
- headers = headers or {}
+ headers = CaseInsensitiveDict(headers or {})
if ("Content-Type" in headers and
CONTENT_TYPE_FORM_URLENCODED in headers["Content-Type"]):
request = Request(uri, http_method, body, headers)