Skip to content

Commit b69d590

Browse files
bb9001
authored andcommitted
Improve Python 2 compatibility
1 parent 1f966bb commit b69d590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

copyparty/httpcli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def send_headers(
911911
if status == 304:
912912
self.out_headers.pop("Content-Length", None)
913913
self.out_headers.pop("Content-Type", None)
914-
self.out_headerlist.clear()
914+
self.out_headerlist[:] = []
915915
if self.k304():
916916
self.keepalive = False
917917
else:

0 commit comments

Comments
 (0)