mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fixed a bug where user couldn't add custom headers.
This commit is contained in:
+1
-1
@@ -295,7 +295,7 @@ class PreparedRequest(RequestMixin):
|
||||
"""Prepares the given HTTP headers."""
|
||||
|
||||
if headers:
|
||||
self.headers = CaseInsensitiveDict(self.headers)
|
||||
self.headers = CaseInsensitiveDict(headers)
|
||||
else:
|
||||
self.headers = CaseInsensitiveDict()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user