some fixes

This commit is contained in:
Mateusz Gruszczyński
2026-07-22 09:43:08 +02:00
parent e756e61906
commit 0d77624adc
10 changed files with 105 additions and 25 deletions
+1
View File
@@ -768,6 +768,7 @@ async fn serve_token_file(state: &SharedState, token: &str, filename: &str) -> R
HeaderValue::from_str(mime.as_ref()).unwrap_or_else(|_| HeaderValue::from_static("application/octet-stream")),
);
response.headers_mut().insert(header::X_CONTENT_TYPE_OPTIONS, HeaderValue::from_static("nosniff"));
response.headers_mut().insert(header::CACHE_CONTROL, HeaderValue::from_static("public, max-age=600"));
Ok(response)
}