File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,19 @@ impl Builder {
402
402
self
403
403
}
404
404
405
+ /// Set whether HTTP/1 connections will silently ignored malformed header lines.
406
+ ///
407
+ /// If this is enabled and a header line does not start with a valid header
408
+ /// name, or does not include a colon at all, the line will be silently ignored
409
+ /// and no error will be reported.
410
+ ///
411
+ /// Default is false.
412
+ pub fn ignore_invalid_headers_in_requests ( & mut self , enabled : bool ) -> & mut Builder {
413
+ self . h1_parser_config
414
+ . ignore_invalid_headers_in_requests ( enabled) ;
415
+ self
416
+ }
417
+
405
418
/// Set whether HTTP/1 connections should try to use vectored writes,
406
419
/// or always flatten into a single buffer.
407
420
///
You can’t perform that action at this time.
0 commit comments