fix(http1): http1_title_case_headers should move Builder

This commit is contained in:
ty
2021-04-22 12:01:06 +08:00
committed by Sean McArthur
parent 7f69d8f94c
commit a303b3c329

View File

@@ -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
}