mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
Merge f20113ea2c
into 187cae25bf
This commit is contained in:
commit
0f26675484
|
@ -1130,7 +1130,18 @@ class HttpCli(object):
|
||||||
status: int = 200,
|
status: int = 200,
|
||||||
use302: bool = False,
|
use302: bool = False,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
|
if self.args.R:
|
||||||
|
if vpath.startswith(self.args.SR):
|
||||||
|
vp = vpath
|
||||||
|
elif vpath.startswith("/"):
|
||||||
|
vp = self.args.SR + vpath
|
||||||
|
else:
|
||||||
vp = self.args.SRS + vpath
|
vp = self.args.SRS + vpath
|
||||||
|
else:
|
||||||
|
if vpath.startswith("/"):
|
||||||
|
vp = vpath
|
||||||
|
else:
|
||||||
|
vp = "/" + vpath if vpath else "/"
|
||||||
html = self.j2s(
|
html = self.j2s(
|
||||||
"msg",
|
"msg",
|
||||||
h2='<a href="{}">{} {}</a>'.format(
|
h2='<a href="{}">{} {}</a>'.format(
|
||||||
|
|
Loading…
Reference in a new issue