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:
3d4d5ab
)
fix for #458
author
Shivaram Lingamneni
<slingamn@cs.stanford.edu>
Fri, 4 May 2012 04:16:56 +0000
(21:16 -0700)
committer
Shivaram Lingamneni
<slingamn@cs.stanford.edu>
Fri, 4 May 2012 04:16:56 +0000
(21:16 -0700)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 8319525e18a2dbe581f945fecbdf0e6396fd8954..abee9a620392d7847bfa0fb4b545cf647c7efc08 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-526,6
+526,7
@@
class Request(object):
conn = self._poolmanager.connection_from_url(url)
else:
conn = connectionpool.connection_from_url(url)
+ self.headers['Connection'] = 'close'
except LocationParseError as e:
raise InvalidURL(e)