diff options
Diffstat (limited to 'library/cpp/http/push_parser/http_parser.cpp')
| -rw-r--r-- | library/cpp/http/push_parser/http_parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/http/push_parser/http_parser.cpp b/library/cpp/http/push_parser/http_parser.cpp index d36618069fe..f98da92b8c0 100644 --- a/library/cpp/http/push_parser/http_parser.cpp +++ b/library/cpp/http/push_parser/http_parser.cpp @@ -309,6 +309,9 @@ bool THttpParser::DecodeContent() { } NBlockCodecs::TDecodedInput decoder(&in, codec); DecodedContent_ = decoder.ReadAll(); + } else if (ContentEncoding_ == "lz4") { + const auto* codec = NBlockCodecs::Codec(TStringBuf(ContentEncoding_)); + DecodedContent_ = codec->Decode(Content_); } else { throw THttpParseException() << "Unsupported content-encoding method: " << ContentEncoding_; } |
