Skip to content

Commit ce1fef5

Browse files
committed
fix styling issue
1 parent e98583f commit ce1fef5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

caldav/davclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def __init__(
7777
## consider to do streaming into the xmltree library as originally
7878
## intended. It only makes sense for really huge payloads though.
7979
content_type = self.headers.get("Content-Type", "")
80-
expect_xml = content_type.startswith(
81-
"text/xml"
82-
) or content_type.startswith("application/xml")
80+
expect_xml = content_type.startswith("text/xml") or content_type.startswith(
81+
"application/xml"
82+
)
8383
## text/plain is typically for errors, we shouldn't see it on 200/207 responses.
8484
## TODO: may want to log an error if it's text/plain and 200/207.
8585
## Logic here was moved when refactoring

0 commit comments

Comments
 (0)