Skip to content

Commit

Permalink
fix #1398
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Aug 7, 2024
1 parent c46684e commit 0308601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/Services/CalDAV/Core.vala
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class Services.CalDAV.Core : GLib.Object {
Services.CalDAV.Providers.Base provider = providers_map.get (caldav_type.to_string ());

string url = provider.get_server_url (server_url, username, password);
print ("URL: %s\n".printf (url));

if (Services.Store.instance ().source_caldav_exists (url, username)) {
response.error_code = 409;
Expand Down
2 changes: 2 additions & 0 deletions core/Services/CalDAV/Providers/Nextcloud.vala
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ public class Services.CalDAV.Providers.Nextcloud : Services.CalDAV.Providers.Bas
if (_uri.get_port () > 0) {
server_url = "%s://%s:%d".printf (_uri.get_scheme (), _uri.get_host (), _uri.get_port ());
}

server_url += _uri.get_path ();
} catch (Error e) {
debug (e.message);
}
Expand Down

0 comments on commit 0308601

Please sign in to comment.