Skip to content

Commit

Permalink
Revert "Add check for base_prefix indicating Radicale running at site…
Browse files Browse the repository at this point in the history
… root (/)"
  • Loading branch information
pbiering committed Mar 2, 2024
1 parent c5b48c1 commit 7936e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicale/app/__init__.py
Expand Up @@ -197,7 +197,7 @@ def response(status: int, headers: types.WSGIResponseHeaders,
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("/")
Expand Down

0 comments on commit 7936e71

Please sign in to comment.