Skip to content

Commit

Permalink
Prevent infinite recursion when querying
Browse files Browse the repository at this point in the history
Fixes #343
  • Loading branch information
bchardin authored and tobixen committed Nov 7, 2023
1 parent e60f3fa commit 34bd9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caldav/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _query(
) or ret.status >= 400:
## COMPATIBILITY HACK - see https://github.com/python-caldav/caldav/issues/309
body = to_wire(body)
if ret.status == 500 and not b"getetag" in body:
if ret.status == 500 and not b"getetag" in body and b"<C:calendar-data/>" in body:
body = body.replace(
b"<C:calendar-data/>", b"<D:getetag/><C:calendar-data/>"
)
Expand Down

0 comments on commit 34bd9f7

Please sign in to comment.