From 4446760f74e39032103c88d805e3f39ed2f1f6a6 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 12 Jul 2021 22:55:38 +0200 Subject: [PATCH] fix link to ?stack on rootless configs --- copyparty/httpcli.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 883c359c..106391a8 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -37,7 +37,6 @@ class HttpCli(object): self.ip = conn.addr[0] self.addr = conn.addr # type: tuple[str, int] self.args = conn.args - self.is_mp = conn.is_mp self.asrv = conn.asrv # type: AuthSrv self.ico = conn.ico self.thumbcli = conn.thumbcli @@ -343,6 +342,9 @@ class HttpCli(object): if "tree" in self.uparam: return self.tx_tree() + if "stack" in self.uparam: + return self.tx_stack() + # conditional redirect to single volumes if self.vpath == "" and not self.ouparam: nread = len(self.rvol) @@ -372,9 +374,6 @@ class HttpCli(object): if "scan" in self.uparam: return self.scanvol() - if "stack" in self.uparam: - return self.tx_stack() - return self.tx_browser() def handle_options(self):