Skip to content

Commit 9749184

Browse files
authored
feat(server): add allow_multiple_spaces_in_request_line_delimiters http1 builder method (#3929)
1 parent caa166c commit 9749184

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/server/conn/http1.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ impl Builder {
276276
self
277277
}
278278

279+
/// Set whether multiple spaces are allowed as delimiters in request lines.
280+
pub fn allow_multiple_spaces_in_request_line_delimiters(&mut self, enabled: bool) -> &mut Self {
281+
self.h1_parser_config
282+
.allow_multiple_spaces_in_request_line_delimiters(enabled);
283+
self
284+
}
285+
279286
/// Set whether HTTP/1 connections will silently ignored malformed header lines.
280287
///
281288
/// If this is enabled and a header line does not start with a valid header

0 commit comments

Comments
 (0)