CalDAV Scheduling (closes #1514)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "http"
|
||||
version = "0.12.4"
|
||||
version = "0.12.5"
|
||||
edition = "2024"
|
||||
resolver = "2"
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user