From b77bed332417f981346f89e06077861b6feec4ba Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 8 Jun 2021 09:40:49 +0200 Subject: [PATCH] fix terminating tls connections wow --- copyparty/httpcli.py | 1 + copyparty/httpsrv.py | 1 + 2 files changed, 2 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index a977987e..5bd64b4f 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -507,6 +507,7 @@ class HttpCli(object): items = items.replace("\r", "").split("\n") items = [unquotep(x) for x in items if items] + self.parser.drop() return self.tx_zip(k, v, vn, rem, items, self.args.ed) def handle_post_json(self): diff --git a/copyparty/httpsrv.py b/copyparty/httpsrv.py index 7ec69440..996bd90d 100644 --- a/copyparty/httpsrv.py +++ b/copyparty/httpsrv.py @@ -99,6 +99,7 @@ class HttpSrv(object): cli.run() finally: + sck = cli.s if self.args.log_conn: self.log("%s %s" % addr, "|%sC-cdone" % ("-" * 7,), c="1;30")