mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
freebsd: fancy console listing for fetch
This commit is contained in:
parent
1a46738649
commit
14ad5916fc
|
@ -2833,7 +2833,7 @@ class HttpCli(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt = self.uparam.get("ls", "")
|
fmt = self.uparam.get("ls", "")
|
||||||
if not fmt and self.ua.startswith("curl/"):
|
if not fmt and (self.ua.startswith("curl/") or self.ua.startswith("fetch")):
|
||||||
fmt = "v"
|
fmt = "v"
|
||||||
|
|
||||||
if fmt in ["v", "t", "txt"]:
|
if fmt in ["v", "t", "txt"]:
|
||||||
|
@ -3330,7 +3330,7 @@ class HttpCli(object):
|
||||||
is_ls = "ls" in self.uparam
|
is_ls = "ls" in self.uparam
|
||||||
is_js = self.args.force_js or self.cookies.get("js") == "y"
|
is_js = self.args.force_js or self.cookies.get("js") == "y"
|
||||||
|
|
||||||
if not is_ls and self.ua.startswith("curl/"):
|
if not is_ls and (self.ua.startswith("curl/") or self.ua.startswith("fetch")):
|
||||||
self.uparam["ls"] = "v"
|
self.uparam["ls"] = "v"
|
||||||
is_ls = True
|
is_ls = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue