Improve Python 2 compatibility
This commit is contained in:
parent
1c86b64a4e
commit
9fb291230c
@ -911,7 +911,7 @@ class HttpCli(object):
|
||||
if status == 304:
|
||||
self.out_headers.pop("Content-Length", None)
|
||||
self.out_headers.pop("Content-Type", None)
|
||||
self.out_headerlist.clear()
|
||||
self.out_headerlist[:] = []
|
||||
if self.k304():
|
||||
self.keepalive = False
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user