Fix issue6312 - close the resp object for HEAD response.
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 5eb3f0d..d66a9fc 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -525,6 +525,7 @@
             return ''
 
         if self._method == 'HEAD':
+            self.close()
             return ''
 
         if self.chunked: