v0.35.1: performance, AGPL licensing and documentation overhaul
- Web Server reads static files inline; proxy middleware chain flattened - About window with license summary and project links; AGPL-3.0-or-later - Rewritten documentation: feature list, screenshots, performance guide - Fix false spikes in per-Vhost request-rate charts
This commit is contained in:
1 parent
d3b492874b
commit
eba9f89283
135 files changed
+1425
-1064
No files matched your search
@@ -66,8 +66,7 @@ pub(super) fn builtin_error_response(status: StatusCode, method: &Method) -> Res
|
||||
response
|
||||
.headers_mut()
|
||||
.insert(CACHE_CONTROL, HeaderValue::from_static("no-store"));
|
||||
response.headers_mut().insert(
|
||||
"x-content-type-options",
|
||||
response.headers_mut().insert(::http::header::X_CONTENT_TYPE_OPTIONS,
|
||||
HeaderValue::from_static("nosniff"),
|
||||
);
|
||||
response
|
||||
@@ -249,7 +248,7 @@ fn add_download_header(response: &mut Response, service: &CompiledService, path:
|
||||
|
||||
pub(super) fn accepts_content_encoding(headers: &HeaderMap, wanted: &str) -> bool {
|
||||
let Some(value) = headers
|
||||
.get(http::header::ACCEPT_ENCODING)
|
||||
.get(::http::header::ACCEPT_ENCODING)
|
||||
.and_then(|value| value.to_str().ok())
|
||||
else {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user