Skip to content

Commit 7936e71

Browse files
authored
Revert "Add check for base_prefix indicating Radicale running at site root (/)"
1 parent c5b48c1 commit 7936e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

radicale/app/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def response(status: int, headers: types.WSGIResponseHeaders,
197197
if base_prefix_src == "HTTP_X_SCRIPT_NAME":
198198
return response(*httputils.BAD_REQUEST)
199199
return response(*httputils.INTERNAL_SERVER_ERROR)
200-
if base_prefix and base_prefix != "/" and base_prefix.endswith("/"):
200+
if base_prefix.endswith("/"):
201201
logger.warning("Base prefix (from %s) must not end with '/': %r",
202202
base_prefix_src, base_prefix)
203203
base_prefix = base_prefix.rstrip("/")

0 commit comments

Comments
 (0)