diff options
Diffstat (limited to 'python3')
| -rwxr-xr-x | python3/httplib2/__init__.py | 4 |
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": |
