CalDAV Scheduling (closes #1514)

This commit is contained in:
mdecimus
2025-06-23 18:32:19 +02:00
parent 367ddeeae4
commit 7087148d3d
69 changed files with 2684 additions and 881 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "http"
version = "0.12.4"
version = "0.12.5"
edition = "2024"
resolver = "2"

View File

@@ -488,7 +488,17 @@ impl ParseHttp for Server {
&& path.next().unwrap_or_default() == "rsvp"
{
return self
.http_rsvp_handle(req.uri().query().unwrap_or_default())
.http_rsvp_handle(
req.uri().query().unwrap_or_default(),
req.headers()
.get(header::ACCEPT_LANGUAGE)
.and_then(|v| v.to_str().ok())
.map(|lang| {
let lang = lang.split_once(',').map_or(lang, |(l, _)| l);
lang.split_once(';').map_or(lang, |(l, _)| l)
})
.unwrap_or("en"),
)
.await
.map(|response| {
HtmlResponse::new(response)