1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

add content-encoding decompression

This commit is contained in:
Nikolay Kim
2019-03-26 15:14:32 -07:00
parent 9451ba71f4
commit 1904b01fc0
16 changed files with 780 additions and 538 deletions

View File

@@ -507,7 +507,7 @@ impl<P> Service for ResourceService<P> {
if let Some(ref mut default) = self.default {
Either::B(Either::A(default.call(req)))
} else {
let req = req.into_request();
let req = req.into_parts().0;
Either::B(Either::B(ok(ServiceResponse::new(
req,
Response::MethodNotAllowed().finish(),