diff --git a/src/httprequest.rs b/src/httprequest.rs index e201d9cb..519e085f 100644 --- a/src/httprequest.rs +++ b/src/httprequest.rs @@ -264,7 +264,7 @@ impl HttpRequest { ///Returns mutable Request's headers. /// ///This is intended to be used by middleware. - #[inline] + #[cfg(test)] pub(crate) fn headers_mut(&mut self) -> &mut HeaderMap { &mut self.as_mut().headers }