From 24cb30e2c5e4c869012589fc3f3a495500e28ad2 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 1 May 2022 11:42:19 +0200 Subject: [PATCH] support login from ie4 / win3.11 --- copyparty/httpcli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 1dca8d42..1a177538 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1025,7 +1025,11 @@ class HttpCli(object): pwd = "x" # nosec dur = None - return [gencookie("cppwd", pwd, dur), msg] + r = gencookie("cppwd", pwd, dur) + if self.headers.get("user-agent", "").startswith("Mozilla/4."): + r = r.rsplit(" ", 1)[0] + + return [r, msg] def handle_mkdir(self): new_dir = self.parser.require("name", 512)