diff options
author | kuzmich321 <kuzmich321@yandex-team.com> | 2024-12-18 15:13:55 +0300 |
---|---|---|
committer | kuzmich321 <kuzmich321@yandex-team.com> | 2024-12-18 15:49:03 +0300 |
commit | 6cf802bd8435db1b0bd904cdce3d1575db638c4b (patch) | |
tree | 4c49e300f31190f2fd675ff7cfe6d6857b8e1fe2 /library/cpp/http/simple/http_client.cpp | |
parent | cdac53bd38be384d4ee82cdfdb24a80ef065ac5d (diff) | |
download | ydb-6cf802bd8435db1b0bd904cdce3d1575db638c4b.tar.gz |
fix redirects port selection
Если в редиректе приходит url со схемой **http (без s !!!)**, то порт выставляется ++443++
Этот PR фиксит это поведение
commit_hash:ef496e4f1cb08f3ba3b9b0f89a34f077cce38e00
Diffstat (limited to 'library/cpp/http/simple/http_client.cpp')
-rw-r--r-- | library/cpp/http/simple/http_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/http/simple/http_client.cpp b/library/cpp/http/simple/http_client.cpp index 342236f9a3..1f3c388ff0 100644 --- a/library/cpp/http/simple/http_client.cpp +++ b/library/cpp/http/simple/http_client.cpp @@ -343,8 +343,8 @@ void TRedirectableHttpClient::ProcessResponse(const TStringBuf relativeUrl, THtt THttpURL u; if (THttpURL::ParsedOK == u.Parse(url)) { const char* p = u.Get(THttpURL::FieldPort); + port = u.GetPort(); if (p) { - port = FromString<ui16>(p); url = u.PrintS(THttpURL::FlagScheme | THttpURL::FlagHost); } } |