Update actix-http/src/encoding/decoder.rs

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
This commit is contained in:
Arthur Le Moigne 2021-06-03 10:39:15 +02:00 committed by GitHub
parent 0054e6610d
commit 4f2660a981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,11 @@ where
GzDecoder::new(Writer::new()), GzDecoder::new(Writer::new()),
))), ))),
ContentEncoding::Zstd => Some(ContentDecoder::Zstd(Box::new( ContentEncoding::Zstd => Some(ContentDecoder::Zstd(Box::new(
ZstdDecoder::new(Writer::new()).expect("Fail to create zstd decoder"), ZstdDecoder::new(Writer::new())
.expect(
"Failed to create zstd decoder. This is a bug and should normally happen. \
Please report it to the actix-web repository."
),
))), ))),
_ => None, _ => None,
}; };