Skip to content

Commit 43f7c48

Browse files
committed
piggybacking in a fix for #465 (comment)
1 parent cb28611 commit 43f7c48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

caldav/davclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(
9696
xml = ["text/xml", "application/xml"]
9797
no_xml = ["text/plain", "text/calendar"]
9898
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))
99+
expect_no_xml = any((content_type.startswith(x) for x in no_xml)) or response.status_code>399
100100
try:
101101
content_length = int(self.headers["Content-Length"])
102102
except:

0 commit comments

Comments
 (0)