A connection should be marked live with HEAD too. (#688)
This commit is contained in:
committed by
Honza Král
parent
017dcf1d13
commit
966f689545
@@ -335,11 +335,12 @@ class Transport(object):
|
||||
raise
|
||||
|
||||
else:
|
||||
# connection didn't fail, confirm it's live status
|
||||
self.connection_pool.mark_live(connection)
|
||||
|
||||
if method == 'HEAD':
|
||||
return 200 <= status < 300
|
||||
|
||||
# connection didn't fail, confirm it's live status
|
||||
self.connection_pool.mark_live(connection)
|
||||
if data:
|
||||
data = self.deserializer.loads(data, headers.get('content-type'))
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user