aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch/httpload.cpp
diff options
context:
space:
mode:
authorsgrb <sgrb@yandex-team.ru>2022-02-10 16:49:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:47 +0300
commit6a705ee267e43301156c202a4b371d47ddd4dd4f (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/fetch/httpload.cpp
parent1485f03dbdc4314901c6ccea1fe17cc6943dea63 (diff)
downloadydb-6a705ee267e43301156c202a4b371d47ddd4dd4f.tar.gz
Restoring authorship annotation for <sgrb@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpload.cpp')
-rw-r--r--library/cpp/http/fetch/httpload.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/http/fetch/httpload.cpp b/library/cpp/http/fetch/httpload.cpp
index 7f0b165974..82ea8900b5 100644
--- a/library/cpp/http/fetch/httpload.cpp
+++ b/library/cpp/http/fetch/httpload.cpp
@@ -185,7 +185,7 @@ void httpLoadAgent::dropHeaderInstructions() {
bool httpLoadAgent::startRequest(const THttpURL& url,
bool persistent,
const TAddrList& addrs)
-
+
{
clearReader();
ErrCode_ = 0;
@@ -198,7 +198,7 @@ bool httpLoadAgent::startRequest(const THttpURL& url,
if (!HandleAuthorization_ && !URL_.IsNull(THttpURL::FlagAuth))
return false;
- return doSetHost(addrs) && doStartRequest();
+ return doSetHost(addrs) && doStartRequest();
}
/************************************************************/
@@ -206,22 +206,22 @@ bool httpLoadAgent::startRequest(const char* url,
const char* url_to_merge,
bool persistent,
const TAddrList& addrs) {
- clearReader();
-
- URL_.Clear();
- PersistentConn_ = persistent;
-
- long flags = THttpURL::FeatureSchemeKnown | THttpURL::FeaturesNormalizeSet;
- if (HandleAuthorization_)
- flags |= THttpURL::FeatureAuthSupported;
-
- if (URL_.Parse(url, flags, url_to_merge) || !URL_.IsValidGlobal())
- return false;
-
- return doSetHost(addrs) && doStartRequest();
-}
-
-/************************************************************/
+ clearReader();
+
+ URL_.Clear();
+ PersistentConn_ = persistent;
+
+ long flags = THttpURL::FeatureSchemeKnown | THttpURL::FeaturesNormalizeSet;
+ if (HandleAuthorization_)
+ flags |= THttpURL::FeatureAuthSupported;
+
+ if (URL_.Parse(url, flags, url_to_merge) || !URL_.IsValidGlobal())
+ return false;
+
+ return doSetHost(addrs) && doStartRequest();
+}
+
+/************************************************************/
bool httpLoadAgent::startRequest(const char* url,
const char* url_to_merge,
bool persistent,
@@ -238,7 +238,7 @@ bool httpLoadAgent::startRequest(const char* url,
if (URL_.Parse(url, flags, url_to_merge) || !URL_.IsValidGlobal())
return false;
- return doSetHost(TAddrList::MakeV4Addr(ip, URL_.GetPort())) && doStartRequest();
+ return doSetHost(TAddrList::MakeV4Addr(ip, URL_.GetPort())) && doStartRequest();
}
/************************************************************/
@@ -250,7 +250,7 @@ bool httpLoadAgent::doSetHost(const TAddrList& addrs) {
if (addrs.size()) {
ErrCode_ = SetHost(URL_.Get(THttpURL::FieldHost),
- URL_.GetPort(), addrs);
+ URL_.GetPort(), addrs);
} else {
ErrCode_ = SetHost(URL_.Get(THttpURL::FieldHost),
URL_.GetPort());
@@ -292,7 +292,7 @@ bool httpLoadAgent::setHost(const char* host_url,
if (URL_.Parse(host_url, flags) || !URL_.IsValidGlobal())
return false;
- return doSetHost(addrs);
+ return doSetHost(addrs);
}
/************************************************************/