projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e5df1
)
headers.update is not the same that add headers one by one with add_header
author
moliware
<miguel@moliware.com>
Mon, 15 Aug 2011 09:58:57 +0000
(11:58 +0200)
committer
moliware
<miguel@moliware.com>
Mon, 15 Aug 2011 09:58:57 +0000
(11:58 +0200)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 08f3e32146af92b7f1e4039d9ff140e7a8345c60..3c0d0517e4fc8647dfc28820c5e4e78a8e375c98 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-300,7
+300,8
@@
class Request(object):
req = _Request(url, data=self._enc_data, method=self.method)
if self.headers:
- req.headers.update(self.headers)
+ for k,v in self.headers.iteritems():
+ req.add_header(k, v)
if not self.sent or anyway: