DAV header, remove compliance class 2 (locking support)

This commit is contained in:
Lennart
2025-01-04 19:44:16 +01:00
parent 4c559e00aa
commit 5a4aa5f252
2 changed files with 4 additions and 2 deletions

View File

@@ -39,8 +39,9 @@ pub fn configure_dav<AP: AuthenticationProvider, C: CalendarStore + ?Sized>(
let response = HttpResponse::Ok() let response = HttpResponse::Ok()
.insert_header(( .insert_header((
HeaderName::from_static("dav"), HeaderName::from_static("dav"),
// https://datatracker.ietf.org/doc/html/rfc4918#section-18
HeaderValue::from_static( HeaderValue::from_static(
"1, 2, 3, access-control, calendar-access, extended-mkcol, calendar-no-timezone", "1, 3, access-control, calendar-access, extended-mkcol, calendar-no-timezone",
), ),
)) ))
.finish(); .finish();

View File

@@ -44,8 +44,9 @@ pub fn configure_dav<AP: AuthenticationProvider, A: AddressbookStore + ?Sized>(
let response = HttpResponse::Ok() let response = HttpResponse::Ok()
.insert_header(( .insert_header((
HeaderName::from_static("dav"), HeaderName::from_static("dav"),
// https://datatracker.ietf.org/doc/html/rfc4918#section-18
HeaderValue::from_static( HeaderValue::from_static(
"1, 2, 3, access-control, addressbook, extended-mkcol", "1, 3, access-control, addressbook, extended-mkcol",
), ),
)) ))
.finish(); .finish();