Implement workaround to allow GNOME Accounts setup

This commit is contained in:
Lennart
2025-06-11 15:37:59 +02:00
parent dac49f853a
commit bd0684dcbc
2 changed files with 25 additions and 2 deletions

View File

@@ -114,6 +114,9 @@ where
}
async fn route_options<RS: ResourceService + AxumMethods>() -> Response<Body> {
// Semantically NO_CONTENT would also make sense,
// but GNOME Accounts only works when returning OK
// https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/blob/master/src/goabackend/goadavclient.c#L289
let mut resp = Response::builder().status(StatusCode::OK);
let headers = resp.headers_mut().unwrap();
headers.insert("DAV", HeaderValue::from_static(RS::DAV_HEADER));