1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-10 18:40:53 +00:00

Revert "Add check for base_prefix indicating Radicale running at site root (/)"

This commit is contained in:
Peter Bieringer 2024-03-02 20:38:17 +01:00 committed by GitHub
parent c5b48c1ee4
commit 7936e714d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 and base_prefix != "/" and base_prefix.endswith("/"):
if base_prefix.endswith("/"):
logger.warning("Base prefix (from %s) must not end with '/': %r",
base_prefix_src, base_prefix)
base_prefix = base_prefix.rstrip("/")