From 4f2660a981eb0660e8eb929d5b5f9a61485078ad Mon Sep 17 00:00:00 2001 From: Arthur Le Moigne Date: Thu, 3 Jun 2021 10:39:15 +0200 Subject: [PATCH] Update actix-http/src/encoding/decoder.rs Co-authored-by: Igor Aleksanov --- actix-http/src/encoding/decoder.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/actix-http/src/encoding/decoder.rs b/actix-http/src/encoding/decoder.rs index b8a503c7b..996adf561 100644 --- a/actix-http/src/encoding/decoder.rs +++ b/actix-http/src/encoding/decoder.rs @@ -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, };