Fixed a bug where user couldn't add custom headers.

This commit is contained in:
Bartek Sarul
2012-12-16 15:59:28 +01:00
parent fee7a7a80d
commit 73ca21ed8c
+1 -1
View File
@@ -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()