diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch) | |
tree | d3349caea4095825a55b5ba24fe758067b29ce6f /library/cpp/http/fetch/httpfetcher.h | |
parent | 9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff) | |
download | ydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfetcher.h')
-rw-r--r-- | library/cpp/http/fetch/httpfetcher.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/http/fetch/httpfetcher.h b/library/cpp/http/fetch/httpfetcher.h index 7fc251afd2e..9c439ab60b1 100644 --- a/library/cpp/http/fetch/httpfetcher.h +++ b/library/cpp/http/fetch/httpfetcher.h @@ -35,7 +35,7 @@ public: static const size_t TCP_MIN = 1500; static int TerminateNow; - THttpFetcher() + THttpFetcher() : THttpParser<TCheck>() , TAlloc() , TWriter() @@ -55,15 +55,15 @@ public: size_t schemelen = strlen(scheme); if (*path == '/') { header->base = TStringBuf(scheme, schemelen); - header->base += TStringBuf("://", 3); - header->base += TStringBuf(TAgent::pHostBeg, TAgent::pHostEnd - TAgent::pHostBeg); - header->base += path; + header->base += TStringBuf("://", 3); + header->base += TStringBuf(TAgent::pHostBeg, TAgent::pHostEnd - TAgent::pHostBeg); + header->base += path; } else { - if (strlen(path) >= FETCHER_URL_MAX) { - header->error = HTTP_URL_TOO_LARGE; - return 0; - } - header->base = path; + if (strlen(path) >= FETCHER_URL_MAX) { + header->error = HTTP_URL_TOO_LARGE; + return 0; + } + header->base = path; } if ((ret = TAgent::RequestGet(path, headers, persistent, head_request))) { |