summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/http/http.cpp
diff options
context:
space:
mode:
authorermolovd <[email protected]>2025-11-07 12:42:42 +0300
committerermolovd <[email protected]>2025-11-07 15:57:53 +0300
commitce6ccdf059d9ad0bfe8bb3e47ede333f7088f768 (patch)
tree65c2b565eb9505368986211bfe25dcf76a625727 /yt/cpp/mapreduce/http/http.cpp
parent71353b77467cfe28e7fe5c7865d6a5c9e5e55d9b (diff)
fix bad implicit cast
commit_hash:97cf8557d5b740c4887037fc64cb82afee4bde4d
Diffstat (limited to 'yt/cpp/mapreduce/http/http.cpp')
-rw-r--r--yt/cpp/mapreduce/http/http.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/http/http.cpp b/yt/cpp/mapreduce/http/http.cpp
index d4f6a07303e..96848bb2b05 100644
--- a/yt/cpp/mapreduce/http/http.cpp
+++ b/yt/cpp/mapreduce/http/http.cpp
@@ -338,7 +338,8 @@ NHttp::THeadersPtrWrapper THttpHeader::GetHeader(const TString& hostName, const
auto headers = New<NHttp::THeaders>();
headers->Add("Host", hostName);
- headers->Add("User-Agent", TProcessState::Get()->ClientVersion);
+ // Explicitly call ConstRef until https://st.yandex-team.ru/IGNIETFERRO-2155 is fixed.
+ headers->Add("User-Agent", TProcessState::Get()->ClientVersion.ConstRef());
if (!Token_.empty()) {
headers->Add("Authorization", "OAuth " + Token_);