diff options
author | Oleg Sidorkin <osidorkin@gmail.com> | 2022-02-10 16:49:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:36 +0300 |
commit | 5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (patch) | |
tree | f16a3558ca40d453a1c6a2ed764bd75d64cffade /library/cpp/http/server | |
parent | cd33f9aa8461f8e2b0b9e68efbb6bc9856197dc9 (diff) | |
download | ydb-5ce74d4fee2d42a4b86efc02dfdc704d458760e1.tar.gz |
Restoring authorship annotation for Oleg Sidorkin <osidorkin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/server')
-rw-r--r-- | library/cpp/http/server/http.cpp | 10 | ||||
-rw-r--r-- | library/cpp/http/server/http_ex.cpp | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp index 128583bdd7..653e0a15f1 100644 --- a/library/cpp/http/server/http.cpp +++ b/library/cpp/http/server/http.cpp @@ -695,13 +695,13 @@ void TClientRequest::Process(void* ThreadSpecificResource) { HttpConn_->Output()->EnableCompression(HttpServ()->Options().CompressionEnabled); } - if (ParsedHeaders.empty()) { - RequestString = Input().FirstLine(); + if (ParsedHeaders.empty()) { + RequestString = Input().FirstLine(); const THttpHeaders& h = Input().Headers(); - ParsedHeaders.reserve(h.Count()); + ParsedHeaders.reserve(h.Count()); for (THttpHeaders::TConstIterator it = h.Begin(); it != h.End(); ++it) { - ParsedHeaders.emplace_back(it->Name(), it->Value()); + ParsedHeaders.emplace_back(it->Name(), it->Value()); } } @@ -750,7 +750,7 @@ void TClientRequest::ProcessFailRequest(int failstate) { ++idx; } - url = RequestString.substr(start, idx - start); + url = RequestString.substr(start, idx - start); } } diff --git a/library/cpp/http/server/http_ex.cpp b/library/cpp/http/server/http_ex.cpp index e07db22bfc..f2763f7912 100644 --- a/library/cpp/http/server/http_ex.cpp +++ b/library/cpp/http/server/http_ex.cpp @@ -22,10 +22,10 @@ bool THttpClientRequestExtension::Parse(char* req, TBaseServerRequestData& rd) { bool THttpClientRequestExtension::ProcessHeaders(TBaseServerRequestData& rd, TBlob& postData) { for (const auto& header : ParsedHeaders) { - rd.AddHeader(header.first, header.second); + rd.AddHeader(header.first, header.second); } - char* s = RequestString.begin(); + char* s = RequestString.begin(); enum EMethod { NotImplemented, |