mirror of
https://github.com/9001/copyparty.git
synced 2025-11-06 06:43:53 +00:00
Improve Python 2 compatibility
This commit is contained in:
@@ -911,7 +911,7 @@ class HttpCli(object):
|
|||||||
if status == 304:
|
if status == 304:
|
||||||
self.out_headers.pop("Content-Length", None)
|
self.out_headers.pop("Content-Length", None)
|
||||||
self.out_headers.pop("Content-Type", None)
|
self.out_headers.pop("Content-Type", None)
|
||||||
self.out_headerlist.clear()
|
self.out_headerlist[:] = []
|
||||||
if self.k304():
|
if self.k304():
|
||||||
self.keepalive = False
|
self.keepalive = False
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user