diff options
| author | Joe Gregorio <joe@bitworking.org> | 2009-11-15 23:05:54 -0500 |
|---|---|---|
| committer | Joe Gregorio <joe@bitworking.org> | 2009-11-15 23:05:54 -0500 |
| commit | 06c806cfb6eead5949765e8a358f7db83058f75a (patch) | |
| tree | 66b3321f0ab97cafb192bfb6191559005024d082 /python3 | |
| parent | 799b207145b38491a9c7fa2c2dcdb99805278d20 (diff) | |
| download | httplib2-06c806cfb6eead5949765e8a358f7db83058f75a.tar.gz | |
Fixed issue 67
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": |
