From aa2dc49ebe802c1aeba27a483633c343105f30e0 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 2 Nov 2021 18:48:32 +0100 Subject: [PATCH] trailing newline for plaintext folder listings --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 477edd76..4192240b 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1911,7 +1911,7 @@ class HttpCli(object): ret = json.dumps(ls) mime = "application/json" - self.reply(ret.encode("utf-8", "replace"), mime=mime) + self.reply(ret.encode("utf-8", "replace") + b"\n", mime=mime) return True def tx_browser(self):