diff --git a/radicale/app/__init__.py b/radicale/app/__init__.py index 8aa8d870b..6896bc701 100644 --- a/radicale/app/__init__.py +++ b/radicale/app/__init__.py @@ -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("/")