diff Lib/http/client.py @ 61060:fd7ec607e101

Merged revisions 80583 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80583 | senthil.kumaran | 2010-04-28 22:50:43 +0530 (Wed, 28 Apr 2010) | 3 lines Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked" ........
author Senthil Kumaran <orsenthil@gmail.com>
date Wed, 28 Apr 2010 17:39:48 +0000
parents d9b8f273ab8d
children 077d29384399
line wrap: on
line diff
--- a/Lib/http/client.py	Wed Apr 28 17:26:19 2010 +0000
+++ b/Lib/http/client.py	Wed Apr 28 17:39:48 2010 +0000
@@ -487,6 +487,9 @@
         if self.fp is None:
             return b""
 
+        if self._method == "HEAD":
+            return b""
+
         if self.chunked:
             return self._read_chunked(amt)