aboutsummaryrefslogtreecommitdiff
path: root/src/modules/headers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/headers.rs')
-rw-r--r--src/modules/headers.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/headers.rs b/src/modules/headers.rs
index 3d0a238..f5b081f 100644
--- a/src/modules/headers.rs
+++ b/src/modules/headers.rs
@@ -41,13 +41,9 @@ impl Node for Headers {
mut request: NodeRequest,
) -> Pin<Box<dyn Future<Output = Result<NodeResponse, ServiceError>> + Send + Sync + 'a>> {
Box::pin(async move {
- request
- .headers_mut()
- .extend(self.request.0.clone());
+ request.headers_mut().extend(self.request.0.clone());
let mut response = self.next.handle(context, request).await?;
- response
- .headers_mut()
- .extend(self.response.0.clone());
+ response.headers_mut().extend(self.response.0.clone());
Ok(response)
})
}