From b69d590176e3bb49c8e039a2f17c4ba21b5f55c2 Mon Sep 17 00:00:00 2001 From: Benjamin Bock Date: Thu, 31 Jul 2025 20:52:58 +0200 Subject: [PATCH] Improve Python 2 compatibility --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index bdbaced2..f698255a 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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: