This commit is contained in:
Mateusz Gruszczyński committed 2026-10-20 11:19:55 +02:00
1 parent 8c0de520d7
commit 8f41b39c26
32 files changed
+934 -128

No files matched your search

+8 -5
View File
@@ -291,11 +291,14 @@ fn finish_headers(
HeaderValue::from_static("private, no-store"),
);
}
if frontend.is_some_and(|frontend| !frontend.http3_enabled) {
response.headers_mut().remove("alt-svc");
} else {
crate::http3::advertise(response.headers_mut(), local, tls, active);
}
crate::http3::advertise(
response.headers_mut(),
local,
tls,
active,
&snapshot.listeners,
!frontend.is_some_and(|frontend| !frontend.http3_enabled),
);
}
fn apply_timing_headers(
response: &mut Response,
+12 -2
View File
@@ -316,14 +316,24 @@ async fn observe(State(state): State<Arc<App>>, mut request: Request, next: Next
.get::<RedirectResponse>()
.is_some_and(|redirect| !redirect.http3_enabled)
{
response.headers_mut().remove("alt-svc");
crate::http3::withdraw_advertisement(
response.headers_mut(),
local,
transport_tls,
&state.active_listeners,
);
}
if response
.extensions()
.get::<LocalHostResponse>()
.is_some_and(|item| !item.http3_enabled)
{
response.headers_mut().remove("alt-svc");
crate::http3::withdraw_advertisement(
response.headers_mut(),
local,
transport_tls,
&state.active_listeners,
);
}
let global_compression = &snapshot.envelope.config.compression;
// All scoped policies have the global codec ceiling. With no accepted