1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-30 21:12:05 +00:00

Preserve empty PATH_INFO from WSGI and strip base prefix from destination

This commit is contained in:
Unrud 2017-05-30 22:34:41 +02:00
parent 0601b81aa7
commit 8536ffee44
2 changed files with 7 additions and 6 deletions

View file

@ -466,10 +466,6 @@ class Collection(BaseCollection):
@classmethod
def discover(cls, path, depth="0"):
if path is None:
# Wrong URL
return
# Path should already be sanitized
sane_path = sanitize_path(path).strip("/")
attributes = sane_path.split("/")