optimizations, failsafes, formatting

This commit is contained in:
ed
2024-10-02 21:59:53 +00:00
parent 480ac254ab
commit 1ff14b4e05
7 changed files with 25 additions and 11 deletions

View File

@@ -181,6 +181,7 @@ class HttpSrv(object):
self.ptn_cc = re.compile(r"[\x00-\x1f]")
self.ptn_hsafe = re.compile(r"[\x00-\x1f<>\"'&]")
self.uparam_cc_ok = set("doc move tree".split())
self.mallow = "GET HEAD POST PUT DELETE OPTIONS".split()
if not self.args.no_dav: