[Python-checkins] r81689 - in python/branches/py3k: Lib/http/client.py

senthil.kumaran python-checkins at python.org
Fri Jun 4 18:38:00 CEST 2010


Author: senthil.kumaran
Date: Fri Jun  4 18:38:00 2010
New Revision: 81689

Log:
Merged revisions 81687 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81687 | senthil.kumaran | 2010-06-04 22:02:14 +0530 (Fri, 04 Jun 2010) | 3 lines
  
  Fix issue6312 - close the resp object for HEAD response.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/http/client.py

Modified: python/branches/py3k/Lib/http/client.py
==============================================================================
--- python/branches/py3k/Lib/http/client.py	(original)
+++ python/branches/py3k/Lib/http/client.py	Fri Jun  4 18:38:00 2010
@@ -488,6 +488,7 @@
             return b""
 
         if self._method == "HEAD":
+            self.close()
             return b""
 
         if self.chunked:


More information about the Python-checkins mailing list