Skip to content

Commit

Permalink
possible workaround for issue #302 - double slashes in the path
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen committed Mar 10, 2023
1 parent 503c444 commit c8a2def
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions caldav/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ def get_properties(
## TODO: should probably be investigated more.
## (observed also by others, ref https://github.com/python-caldav/caldav/issues/168)
rc = properties["/principal/"]
elif '//' in path and path.replace('//', '/') in properties:
## ref https://github.com/python-caldav/caldav/issues/302
## though, it would be nice to find the root cause,
## self.url should not contain double slashes in the first place
rc = properties[path.replace('//', '/')]
elif len(properties) == 1:
## Ref https://github.com/python-caldav/caldav/issues/191 ...
## let's be pragmatic and just accept whatever the server is
Expand Down

0 comments on commit c8a2def

Please sign in to comment.