aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-04-06 16:04:31 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-04-06 16:04:31 +0300
commit153e41f932288c0b73738149d140e6caa5e610cb (patch)
tree875fbf1bac326ccdaa96128d21f0bc59d7fa36f5 /library
parenteeee0e3bdb0549f53330743aba8290870f53f553 (diff)
downloadydb-153e41f932288c0b73738149d140e6caa5e610cb.tar.gz
Intermediate changes
Diffstat (limited to 'library')
-rw-r--r--library/cpp/http/push_parser/http_parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/http/push_parser/http_parser.cpp b/library/cpp/http/push_parser/http_parser.cpp
index f98da92b8c..2302dcb1ab 100644
--- a/library/cpp/http/push_parser/http_parser.cpp
+++ b/library/cpp/http/push_parser/http_parser.cpp
@@ -2,6 +2,7 @@
#include <library/cpp/blockcodecs/stream.h>
#include <library/cpp/blockcodecs/codecs.h>
+#include <library/cpp/streams/brotli/brotli.h>
#include <util/generic/string.h>
#include <util/generic/yexception.h>
@@ -312,6 +313,9 @@ bool THttpParser::DecodeContent() {
} else if (ContentEncoding_ == "lz4") {
const auto* codec = NBlockCodecs::Codec(TStringBuf(ContentEncoding_));
DecodedContent_ = codec->Decode(Content_);
+ } else if (ContentEncoding_ == "br") {
+ TBrotliDecompress decoder(&in);
+ DecodedContent_ = decoder.ReadAll();
} else {
throw THttpParseException() << "Unsupported content-encoding method: " << ContentEncoding_;
}