aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authorAndrey Fomichev <andrey.fomichev@gmail.com>2022-02-10 16:49:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:12 +0300
commite542cc14db4240643a06bb0dde87ecf361f101ab (patch)
tree3b03a4b94acd11a4eca042532035806e5fa08ad1 /library/cpp/http
parente2ac73225f30f7fcf7df3cb225cba257f56144c1 (diff)
downloadydb-e542cc14db4240643a06bb0dde87ecf361f101ab.tar.gz
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 1 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 eab0328b18..2807b7ff46 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 6689be684f..98434dc7a2 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 1ea35df675..c7749eb5fd 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 ad8c80ac1e..b2aab8a001 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");
}