Fix removal of base_prefix in multiget requests

This commit is contained in:
Guillaume Ayoub 2016-04-19 10:44:02 +09:00
parent 6adc7f5fed
commit bf8bd90bcb

View File

@ -500,7 +500,7 @@ def report(path, xml_request, collection):
for href_element in root.findall(_tag("D", "href")): for href_element in root.findall(_tag("D", "href")):
href_path = unquote(urlparse(href_element.text).path) href_path = unquote(urlparse(href_element.text).path)
if href_path.startswith(base_prefix): if href_path.startswith(base_prefix):
hreferences.add(href_path[len(base_prefix):]) hreferences.add(href_path[len(base_prefix) - 1:])
else: else:
hreferences = (path,) hreferences = (path,)
# TODO: handle other filters # TODO: handle other filters