apply experimental flag

This commit is contained in:
Jun Kurihara 2022-07-05 20:00:59 +09:00
commit becd85683c
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 19 additions and 7 deletions

View file

@ -100,10 +100,12 @@ where
};
#[cfg(feature = "h3")]
{
if let Some(port) = self.globals.https_port {
res_backend
.headers_mut()
.insert("alt-svc", format!("h3=\":{}\"", port).parse().unwrap());
if self.globals.http3 {
if let Some(port) = self.globals.https_port {
res_backend
.headers_mut()
.insert("alt-svc", format!("h3=\":{}\"", port).parse().unwrap());
}
}
}
debug!("Response from backend: {:?}", res_backend.status());