aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authorAndrey Fomichev <andrey.fomichev@gmail.com>2022-02-10 16:49:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:15 +0300
commit1c61afbf3db63940d05e6fefa3104b03457788a1 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http
parente542cc14db4240643a06bb0dde87ecf361f101ab (diff)
downloadydb-1c61afbf3db63940d05e6fefa3104b03457788a1.tar.gz
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http')
-rw-r--r--library/cpp/http/fetch/httpfsm.rl62
-rw-r--r--library/cpp/http/io/stream.cpp4
-rw-r--r--library/cpp/http/io/stream_ut.cpp8
-rw-r--r--library/cpp/http/misc/httpcodes.cpp4
4 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/http/fetch/httpfsm.rl6 b/library/cpp/http/fetch/httpfsm.rl6
index 2807b7ff46..eab0328b18 100644
--- a/library/cpp/http/fetch/httpfsm.rl6
+++ b/library/cpp/http/fetch/httpfsm.rl6
@@ -5,7 +5,7 @@
#include <library/cpp/charset/codepage.h>
#include <library/cpp/http/misc/httpcodes.h>
#include <util/datetime/base.h>
-#include <util/generic/ylimits.h>
+#include <util/generic/ylimits.h>
#include <algorithm> // max
#include <library/cpp/http/fetch/httpheader.h>
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp
index 98434dc7a2..6689be684f 100644
--- a/library/cpp/http/io/stream.cpp
+++ b/library/cpp/http/io/stream.cpp
@@ -73,8 +73,8 @@ namespace {
for (TPtr* cur = Beg_; cur != end; ++cur) {
f(*cur);
}
- }
-
+ }
+
TPtr Top() {
const TPtr* end = T_ + N;
return end == Beg_ ? nullptr : *Beg_;
diff --git a/library/cpp/http/io/stream_ut.cpp b/library/cpp/http/io/stream_ut.cpp
index c7749eb5fd..1ea35df675 100644
--- a/library/cpp/http/io/stream_ut.cpp
+++ b/library/cpp/http/io/stream_ut.cpp
@@ -315,15 +315,15 @@ Y_UNIT_TEST_SUITE(THttpStreamTest) {
TBufferedOutput bufOut(&strOut, 8192);
TTeeOutput teeOut(&bufOut, &checkOut);
THttpOutput httpOut(&teeOut);
-
+
httpOut.EnableKeepAlive(true);
httpOut.EnableCompression(true);
-
+
const char* header = "POST / HTTP/1.1\r\nHost: yandex.ru\r\n\r\n";
httpOut << header;
-
+
UNIT_ASSERT_VALUES_EQUAL(str.size(), 0u);
-
+
const char* body = "<html>Hello</html>";
httpOut << body;
UNIT_ASSERT_VALUES_EQUAL(str.size(), 0u);
diff --git a/library/cpp/http/misc/httpcodes.cpp b/library/cpp/http/misc/httpcodes.cpp
index b2aab8a001..ad8c80ac1e 100644
--- a/library/cpp/http/misc/httpcodes.cpp
+++ b/library/cpp/http/misc/httpcodes.cpp
@@ -46,7 +46,7 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("307 Temporarily redirect");
case HTTP_PERMANENT_REDIRECT:
return TStringBuf("308 Permanent redirect");
-
+
case HTTP_BAD_REQUEST:
return TStringBuf("400 Bad request");
case HTTP_UNAUTHORIZED:
@@ -134,7 +134,7 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("511 Network Authentication Required");
case HTTP_UNASSIGNED_512:
return TStringBuf("512 Unassigned");
-
+
default:
return TStringBuf("000 Unknown HTTP code");
}