diff options
author | aosipenko <aosipenko@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
commit | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch) | |
tree | 8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /library/cpp/http/io/stream.cpp | |
parent | d2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff) | |
download | ydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz |
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/io/stream.cpp')
-rw-r--r-- | library/cpp/http/io/stream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp index 6689be684f..8a1319bc10 100644 --- a/library/cpp/http/io/stream.cpp +++ b/library/cpp/http/io/stream.cpp @@ -284,7 +284,7 @@ private: inline void BuildInputChain() { TParsedHeaders p; - + size_t pos = FirstLine_.rfind(' '); // In HTTP/1.1 Keep-Alive is turned on by default if (pos != TString::npos && strcmp(FirstLine_.c_str() + pos + 1, "HTTP/1.1") == 0) { @@ -321,7 +321,7 @@ private: p.KeepAlive = true; } else if (stricmp(header.Value().data(), "close") == 0) { p.KeepAlive = false; - } + } } [[fallthrough]]; HEADERCMP(header, "expect") { @@ -536,7 +536,7 @@ public: if (*c == '\n') { Line_.append(b, c); - if (!Line_.empty() && Line_.back() == '\r') { + if (!Line_.empty() && Line_.back() == '\r') { Line_.pop_back(); } @@ -906,7 +906,7 @@ void THttpOutput::DoFinish() { } const THttpHeaders& THttpOutput::SentHeaders() const noexcept { - return Impl_->SentHeaders(); + return Impl_->SentHeaders(); } void THttpOutput::EnableCompression(bool enable) { |