Follow the depth in REPORT requests

This commit is contained in:
Guillaume Ayoub
2014-03-04 01:37:14 +01:00
parent 066dffd614
commit 9556508b2a
2 changed files with 19 additions and 23 deletions

View File

@@ -568,11 +568,10 @@ class Application(object):
if not len(read_collections):
return NOT_ALLOWED
collection = read_collections[0]
headers = {"Content-Type": "text/xml"}
answer = xmlutils.report(environ["PATH_INFO"], content, collection)
answer = xmlutils.report(
environ["PATH_INFO"], content, read_collections)
return client.MULTI_STATUS, headers, answer
# pylint: enable=W0612,W0613,R0201