Parcourir la source

Merge pull request #379 from untitaker/double-slash

Fix double slash in REPORT responses
Guillaume Ayoub il y a 10 ans
Parent
commit
c0f7bec51d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      radicale/xmlutils.py

+ 1 - 1
radicale/xmlutils.py

@@ -565,7 +565,7 @@ def report(path, xml_request, collection):
             # TODO: fix this
             if hreference.split("/")[-1] == item.href:
                 # Happening when depth is 0
-                uri = "/" + hreference
+                uri = hreference
             else:
                 # Happening when depth is 1
                 uri = posixpath.join(hreference, item.href)