summaryrefslogtreecommitdiff
path: root/python3
diff options
context:
space:
mode:
authorJoe Gregorio <joe@bitworking.org>2009-11-15 23:05:54 -0500
committerJoe Gregorio <joe@bitworking.org>2009-11-15 23:05:54 -0500
commit06c806cfb6eead5949765e8a358f7db83058f75a (patch)
tree66b3321f0ab97cafb192bfb6191559005024d082 /python3
parent799b207145b38491a9c7fa2c2dcdb99805278d20 (diff)
downloadhttplib2-06c806cfb6eead5949765e8a358f7db83058f75a.tar.gz
Fixed issue 67
Diffstat (limited to 'python3')
-rwxr-xr-xpython3/httplib2/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python3/httplib2/__init__.py b/python3/httplib2/__init__.py
index ddaca98..d90a4a3 100755
--- a/python3/httplib2/__init__.py
+++ b/python3/httplib2/__init__.py
@@ -851,7 +851,9 @@ the same interface as FileCache."""
raise
else:
content = b""
- if method != "HEAD":
+ if method == "HEAD":
+ response.close()
+ else:
content = response.read()
response = Response(response)
if method != "HEAD":