swift/test/unit/proxy/controllers
Alistair Coles 6e4ecfc5dc proxy: fix is_useful_response for py2
py2 http responses don't have a 'headers' attribute, so don't try to
use it.

Unfortunately the unit test infrastructure's FakeConn class does
have a 'headers' attribute (whose value doesn't match the result of
calling its 'getheaders()' method!), so this bug was not caught by
tests in the Related-Change.

Related-Change: I96f28ab0b2b5f9374c399e8905ee240e7b093f8b
Change-Id: I2cd820280b8c69cafc5730183903c9d379d8dde5
2024-09-26 16:01:36 +01:00
..
__init__.py re-use headers_to_container_info on container GET 2012-11-01 18:46:47 -07:00
test_account.py Client should retry when there's just one 404 and a bunch of errors 2020-09-08 14:33:09 -07:00
test_base.py Use ClosingMapper to ensure prompt client disconnect logging 2024-05-07 09:19:33 -07:00
test_container.py proxy-server: log correct path when listing parsing fails 2024-06-26 11:23:18 +01:00
test_info.py formpost: deprecate sha1 signatures 2022-07-26 10:39:58 +10:00
test_obj.py proxy: fix is_useful_response for py2 2024-09-26 16:01:36 +01:00