GET event, set correct Content-Type

This commit is contained in:
Lennart
2024-06-30 19:12:10 +02:00
parent ac1e8f0632
commit a67d7557af

View File

@@ -72,6 +72,7 @@ pub async fn get_event<A: CheckAuthentication, C: CalendarStore + ?Sized>(
Ok(HttpResponse::Ok()
.insert_header(("ETag", event.get_etag()))
.insert_header(("Content-Type", "text/calendar"))
.body(event.get_ics().to_owned()))
}