File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ futures-channel = { version = "0.3", optional = true }
31
31
futures-util = { version = " 0.3" , default-features = false , optional = true }
32
32
h2 = { version = " 0.4.2" , optional = true }
33
33
http-body-util = { version = " 0.1" , optional = true }
34
- httparse = { version = " 1.8 " , optional = true }
34
+ httparse = { version = " 1.9 " , optional = true }
35
35
httpdate = { version = " 1.0" , optional = true }
36
36
itoa = { version = " 1" , optional = true }
37
37
pin-project-lite = { version = " 0.2.4" , optional = true }
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