We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e98583f commit ce1fef5Copy full SHA for ce1fef5
1 file changed
caldav/davclient.py
@@ -77,9 +77,9 @@ def __init__(
77
## consider to do streaming into the xmltree library as originally
78
## intended. It only makes sense for really huge payloads though.
79
content_type = self.headers.get("Content-Type", "")
80
- expect_xml = content_type.startswith(
81
- "text/xml"
82
- ) or content_type.startswith("application/xml")
+ expect_xml = content_type.startswith("text/xml") or content_type.startswith(
+ "application/xml"
+ )
83
## text/plain is typically for errors, we shouldn't see it on 200/207 responses.
84
## TODO: may want to log an error if it's text/plain and 200/207.
85
## Logic here was moved when refactoring
0 commit comments