diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-09-24 07:37:08 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-09-24 07:54:12 +0300 |
commit | 2d2e908adaff25f5b49c2ef73a5e2338c58e38a1 (patch) | |
tree | 2ae2d040429428518f0c710c83e42e051f53d1ea | |
parent | acb22b200ac691d8b7ab3e38b7e5c3ec94e433da (diff) | |
download | ydb-2d2e908adaff25f5b49c2ef73a5e2338c58e38a1.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/library/profiling/solomon/exporter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yt/yt/library/profiling/solomon/exporter.cpp b/yt/yt/library/profiling/solomon/exporter.cpp index e0904903b15..930d31bc6b4 100644 --- a/yt/yt/library/profiling/solomon/exporter.cpp +++ b/yt/yt/library/profiling/solomon/exporter.cpp @@ -597,6 +597,10 @@ void TSolomonExporter::DoHandleShard( NMonitoring::ECompression compression = NMonitoring::ECompression::IDENTITY; if (auto acceptEncoding = req->GetHeaders()->Find("Accept-Encoding")) { compression = NMonitoring::CompressionFromAcceptEncodingHeader(*acceptEncoding); + if (compression == NMonitoring::ECompression::UNKNOWN) { + // Fallback to identity if we cannot recognize the requested encoding. + compression = NMonitoring::ECompression::IDENTITY; + } } TStringStream buffer; |