aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmichail <bmichail@yandex-team.ru>2022-02-10 16:49:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:43 +0300
commit3b7286992fb97a312d696ee90ec274a6208f2859 (patch)
tree2bae2971f54c1244f924cc812352e80377cd2404
parent9bd40d940d6613238d700ad86a33e7dcd7ef49c9 (diff)
downloadydb-3b7286992fb97a312d696ee90ec274a6208f2859.tar.gz
Restoring authorship annotation for <bmichail@yandex-team.ru>. Commit 1 of 2.
-rw-r--r--library/cpp/http/io/headers.cpp14
-rw-r--r--library/cpp/http/io/stream_ut.cpp2
-rw-r--r--library/cpp/messagebus/locator.cpp2
3 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/http/io/headers.cpp b/library/cpp/http/io/headers.cpp
index 4ec27a29e8..fdef43cc01 100644
--- a/library/cpp/http/io/headers.cpp
+++ b/library/cpp/http/io/headers.cpp
@@ -46,15 +46,15 @@ THttpHeaders::THttpHeaders(IInputStream* stream) {
TString header;
TString line;
- bool rdOk = stream->ReadLine(header);
- while (rdOk && !header.empty()) {
- rdOk = stream->ReadLine(line);
+ bool rdOk = stream->ReadLine(header);
+ while (rdOk && !header.empty()) {
+ rdOk = stream->ReadLine(line);
- if (rdOk && ((line[0] == ' ') || (line[0] == '\t'))) {
- header += line;
- } else {
+ if (rdOk && ((line[0] == ' ') || (line[0] == '\t'))) {
+ header += line;
+ } else {
AddHeader(THttpInputHeader(header));
- header = line;
+ header = line;
}
}
}
diff --git a/library/cpp/http/io/stream_ut.cpp b/library/cpp/http/io/stream_ut.cpp
index 1ea35df675..e9077bb5f4 100644
--- a/library/cpp/http/io/stream_ut.cpp
+++ b/library/cpp/http/io/stream_ut.cpp
@@ -327,7 +327,7 @@ Y_UNIT_TEST_SUITE(THttpStreamTest) {
const char* body = "<html>Hello</html>";
httpOut << body;
UNIT_ASSERT_VALUES_EQUAL(str.size(), 0u);
-
+
httpOut.Flush();
UNIT_ASSERT_VALUES_EQUAL(checkStr.size(), str.size());
}
diff --git a/library/cpp/messagebus/locator.cpp b/library/cpp/messagebus/locator.cpp
index e38a35c426..c766537560 100644
--- a/library/cpp/messagebus/locator.cpp
+++ b/library/cpp/messagebus/locator.cpp
@@ -242,7 +242,7 @@ namespace NBus {
--last;
Y_ASSERT(Items.end() != last);
Y_ASSERT(last->ServiceId == serviceId);
-
+
TItem& beg = const_cast<TItem&>(*first);
beg.Addr = last->Addr;
}