( ´ w `)

This commit is contained in:
ed 2021-09-08 00:16:08 +02:00
parent 012bbcf770
commit f273253a2b
2 changed files with 5 additions and 0 deletions

View file

@ -39,6 +39,8 @@ class Cfg(Namespace):
no_scandir=False, no_scandir=False,
no_sendfile=True, no_sendfile=True,
no_rescan=True, no_rescan=True,
no_logues=False,
no_readme=False,
re_maxage=0, re_maxage=0,
ihead=False, ihead=False,
nih=True, nih=True,
@ -151,6 +153,7 @@ class TestHttpCli(unittest.TestCase):
tar = tarfile.open(fileobj=io.BytesIO(b)).getnames() tar = tarfile.open(fileobj=io.BytesIO(b)).getnames()
except: except:
tar = [] tar = []
tar = [x[4:] if x.startswith("top/") else x for x in tar]
tar = ["/".join([y for y in [top, durl, x] if y]) for x in tar] tar = ["/".join([y for y in [top, durl, x] if y]) for x in tar]
tar = [[x] + self.can_rw(x) for x in tar] tar = [[x] + self.can_rw(x) for x in tar]
tar_ok = [x[0] for x in tar if x[1]] tar_ok = [x[0] for x in tar if x[1]]

View file

@ -26,6 +26,8 @@ class Cfg(Namespace):
"no_hash": False, "no_hash": False,
"css_browser": None, "css_browser": None,
"no_voldump": True, "no_voldump": True,
"no_logues": False,
"no_readme": False,
"re_maxage": 0, "re_maxage": 0,
"rproxy": 0, "rproxy": 0,
} }