summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/http/http.cpp
diff options
context:
space:
mode:
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_);