aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/io/stream.cpp
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/http/io/stream.cpp
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
downloadydb-69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/io/stream.cpp')
-rw-r--r--library/cpp/http/io/stream.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp
index 8a1319bc10..6689be684f 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) {