mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Merge pull request #495 from untitaker/trailing-slash-fix
Don't return `<item>/` for events
This commit is contained in:
commit
5d9485d660
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ def name_from_path(path, collection):
|
|||
start = collection.path + "/"
|
||||
if not path.startswith(start):
|
||||
raise ValueError("'%s' doesn't start with '%s'" % (path, start))
|
||||
return path[len(start):]
|
||||
return path[len(start):].rstrip("/")
|
||||
|
||||
|
||||
def props_from_request(root, actions=("set", "remove")):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue