From 60a0f165575985c21a59928aa2da238273cb161d Mon Sep 17 00:00:00 2001 From: Lennart K <18233294+lennart-k@users.noreply.github.com> Date: Fri, 18 Jul 2025 12:18:55 +0200 Subject: [PATCH] frontend: Update Apple profile for caldav-compat --- crates/frontend/src/routes/app_token.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/frontend/src/routes/app_token.rs b/crates/frontend/src/routes/app_token.rs index 7fbec2b..248f9ae 100644 --- a/crates/frontend/src/routes/app_token.rs +++ b/crates/frontend/src/routes/app_token.rs @@ -64,7 +64,7 @@ pub async fn route_post_app_token( token_name: name, account_description: format!("{}@{}", &user.id, &hostname), hostname: hostname.clone(), - caldav_principal_url: format!("https://{hostname}/caldav/principal/{user_id}"), + caldav_principal_url: format!("https://{hostname}/caldav-compat/principal/{user_id}"), carddav_principal_url: format!("https://{hostname}/carddav/principal/{user_id}"), user: user.id.to_owned(), token, @@ -79,13 +79,12 @@ pub async fn route_post_app_token( hdrs.typed_insert( ContentType::from_str("application/x-apple-aspen-config; charset=utf-8").unwrap(), ); - let filename = format!("rustical-{}.mobileconfig", user_id); + let filename = format!("rustical-{user_id}.mobileconfig"); let filename = utf8_percent_encode(&filename, CONTROLS); hdrs.insert( header::CONTENT_DISPOSITION, HeaderValue::from_str(&format!( - "attachement; filename*=UTF-8''{} filename={}", - filename, filename + "attachement; filename*=UTF-8''{filename} filename={filename}", )) .unwrap(), );