mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Add check for base_prefix indicating Radicale running at site root (/)
Alternative to PR #1310
This commit is contained in:
parent
d7ce2f0b98
commit
cb5b92cb7a
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
|
|||
if base_prefix_src == "HTTP_X_SCRIPT_NAME":
|
||||
return response(*httputils.BAD_REQUEST)
|
||||
return response(*httputils.INTERNAL_SERVER_ERROR)
|
||||
if base_prefix.endswith("/"):
|
||||
if base_prefix and base_prefix != "/" and base_prefix.endswith("/"):
|
||||
logger.warning("Base prefix (from %s) must not end with '/': %r",
|
||||
base_prefix_src, base_prefix)
|
||||
base_prefix = base_prefix.rstrip("/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue