XML error message for invalid sync-token

This commit is contained in:
Unrud
2017-06-07 14:16:18 +02:00
parent 13381fb829
commit 3753364fc8
2 changed files with 9 additions and 3 deletions

View File

@ -842,6 +842,4 @@ class Application:
headers = {"Content-Type": "text/xml; charset=%s" % self.encoding}
status, xml_answer = xmlutils.report(
base_prefix, path, xml_content, collection)
if status == client.PRECONDITION_FAILED:
return PRECONDITION_FAILED
return (status, headers, self._write_xml_content(xml_answer))