We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb28611 commit 43f7c48Copy full SHA for 43f7c48
1 file changed
caldav/davclient.py
@@ -96,7 +96,7 @@ def __init__(
96
xml = ["text/xml", "application/xml"]
97
no_xml = ["text/plain", "text/calendar"]
98
expect_xml = any((content_type.startswith(x) for x in xml))
99
- expect_no_xml = any((content_type.startswith(x) for x in no_xml))
+ expect_no_xml = any((content_type.startswith(x) for x in no_xml)) or response.status_code>399
100
try:
101
content_length = int(self.headers["Content-Length"])
102
except:
0 commit comments