txaws icon indicating copy to clipboard operation
txaws copied to clipboard

S3Client.head_object is broken

Open mithrandi opened this issue 8 years ago • 0 comments

  File "/home/mithrandi/code/txaws/txaws/s3/client.py", line 495, in <lambda>  
    d.addCallback(lambda (response, body): _to_dict(response.responseHeaders)) 
exceptions.AttributeError: 'Response' object has no attribute 'responseHeaders'

The attribute is named headers, not response_headers. Sadly there is no test coverage at all of this code path, so the test suite doesn't catch this.

mithrandi avatar May 02 '17 23:05 mithrandi