Skip to content

Commit

Permalink
fix(http1): http1_title_case_headers should move Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo authored and seanmonstar committed Apr 22, 2021
1 parent 7f69d8f commit a303b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl<I, E> Builder<I, E> {
/// Default is false.
#[cfg(feature = "http1")]
#[cfg_attr(docsrs, doc(cfg(feature = "http1")))]
pub fn http1_title_case_headers(&mut self, val: bool) -> &mut Self {
pub fn http1_title_case_headers(mut self, val: bool) -> Self {
self.protocol.http1_title_case_headers(val);
self
}
Expand Down

0 comments on commit a303b3c

Please sign in to comment.