Skip to content

Commit a303b3c

Browse files
zonyitooseanmonstar
authored andcommittedApr 22, 2021
fix(http1): http1_title_case_headers should move Builder
1 parent 7f69d8f commit a303b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<I, E> Builder<I, E> {
239239
/// Default is false.
240240
#[cfg(feature = "http1")]
241241
#[cfg_attr(docsrs, doc(cfg(feature = "http1")))]
242-
pub fn http1_title_case_headers(&mut self, val: bool) -> &mut Self {
242+
pub fn http1_title_case_headers(mut self, val: bool) -> Self {
243243
self.protocol.http1_title_case_headers(val);
244244
self
245245
}

0 commit comments

Comments
 (0)
Please sign in to comment.