Fix issue6312 - close the resp object for HEAD response.

This commit is contained in:
Senthil Kumaran 2010-06-04 16:32:14 +00:00
parent 998cc24dd4
commit dfaced5d3d
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ class HTTPResponse:
return ''
if self._method == 'HEAD':
self.close()
return ''
if self.chunked: