jirumiro / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

HEAD requests fail calling the close() method of ResponseDict instance. #223

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a HEAD request

What is the expected output? What do you see instead?
The request should be performed and should return a GET-like response with no 
payload.

Only calling the request method raises an exception saying: 'ResponseDict' 
object has no attribute 'close' (httplib2/__init__.py@Line 1275)

I have attached a patch that calls the close() method of the 'conn' object 
instead of 'response'.

What version of the product are you using? On what operating system?
httplib 0.7.4
Python 2.7.2
Google App Engine 1.7.1 (Mac OS X Dev Server)
Mac OS X 10.8

Please provide any additional information below.

Original issue reported on code.google.com by mohamed....@greendizer.com on 22 Aug 2012 at 7:20

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 403deb2f51e7.

Original comment by joe.gregorio@gmail.com on 28 Aug 2012 at 4:20