1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

decompress payload in cpu threadpool

This commit is contained in:
Nikolay Kim
2019-03-28 11:08:24 -07:00
parent e84c95968f
commit 5795850bbb
7 changed files with 91 additions and 58 deletions

View File

@ -457,7 +457,7 @@ impl ClientRequest {
.map(move |res| {
res.map_body(|head, payload| {
if response_decompress {
Payload::Stream(Decoder::from_headers(&head.headers, payload))
Payload::Stream(Decoder::from_headers(payload, &head.headers))
} else {
Payload::Stream(Decoder::new(payload, ContentEncoding::Identity))
}