Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure a trailing slash for CalDAV urls #434

Merged
merged 3 commits into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/src/appointment/controller/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,11 @@ def __init__(self, subscriber_id: int, calendar_id: int, redis_instance, url: st
super().__init__(subscriber_id, calendar_id, redis_instance)

self.provider = CalendarProvider.caldav
self.url = url
self.url = url if url[-1] == '/' else url + '/'
self.password = password
self.user = user
# connect to CalDAV server

# connect to the CalDAV server
self.client = DAVClient(url=url, username=user, password=password)

def test_connection(self) -> bool:
Expand Down