mirror of https://github.com/fafhrd91/actix-web
Update actix-http/src/encoding/decoder.rs
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
This commit is contained in:
parent
0054e6610d
commit
4f2660a981
|
@ -47,7 +47,11 @@ where
|
|||
GzDecoder::new(Writer::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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue