headers.update is not the same that add headers one by one with add_header

This commit is contained in:
moliware
2011-08-15 11:58:57 +02:00
parent 49e5df1ff9
commit c510d21e4e
+2 -1
View File
@@ -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: