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")