From: Bartek Sarul Date: Sun, 16 Dec 2012 14:59:28 +0000 (+0100) Subject: Fixed a bug where user couldn't add custom headers. X-Git-Tag: v1.0.0~57^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73ca21ed8ca1078ac1f165875fa3a8c3260c3dff;p=services%2Fpython-requests.git Fixed a bug where user couldn't add custom headers. --- diff --git a/requests/models.py b/requests/models.py index 342d3e4..a020041 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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()