From 9ca0f5b45cb90d14ced40ecb8cc58f7ea415bb7d Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Thu, 20 Feb 2025 04:14:12 +1300 Subject: [PATCH] ignore invalid headers --- src/globals.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/globals.rs b/src/globals.rs index 1940e36..f316de5 100644 --- a/src/globals.rs +++ b/src/globals.rs @@ -40,6 +40,7 @@ lazy_static! { let (shutting_down, _) = tokio::sync::watch::channel(false); let mut http1builder = http1::Builder::new(); + http1builder.ignore_invalid_headers(true); http1builder.keep_alive(true); http1builder.timer(TokioTimer::new()); http1builder.header_read_timeout(Duration::from_secs(5));