diff options
author | krock21 <krock21@yandex-team.ru> | 2022-02-10 16:46:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:02 +0300 |
commit | 4aae166b5d23fd02653919f43e2015cd636fa6fd (patch) | |
tree | 70e52225c1ede3476f358bc4699197ace987d46d /library/cpp/http/io | |
parent | 9ab30620977aa96ae9e9da959e2f7e1370cb796d (diff) | |
download | ydb-4aae166b5d23fd02653919f43e2015cd636fa6fd.tar.gz |
Restoring authorship annotation for <krock21@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/io')
-rw-r--r-- | library/cpp/http/io/headers.cpp | 2 | ||||
-rw-r--r-- | library/cpp/http/io/headers_ut.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/http/io/headers.cpp b/library/cpp/http/io/headers.cpp index 4ec27a29e8..e23a8257fc 100644 --- a/library/cpp/http/io/headers.cpp +++ b/library/cpp/http/io/headers.cpp @@ -16,7 +16,7 @@ THttpInputHeader::THttpInputHeader(const TStringBuf header) { size_t pos = header.find(':'); if (pos == TString::npos) { - ythrow THttpParseException() << "can not parse http header(" << TString{header}.Quote() << ")"; + ythrow THttpParseException() << "can not parse http header(" << TString{header}.Quote() << ")"; } Name_ = TString(header.cbegin(), header.cbegin() + pos); diff --git a/library/cpp/http/io/headers_ut.cpp b/library/cpp/http/io/headers_ut.cpp index 1d23ef8fdc..b068de8fe4 100644 --- a/library/cpp/http/io/headers_ut.cpp +++ b/library/cpp/http/io/headers_ut.cpp @@ -20,7 +20,7 @@ namespace { } public: - void Add(TStringBuf name, TStringBuf value) { + void Add(TStringBuf name, TStringBuf value) { Impl.emplace(TString(name), TString(value)); } @@ -53,7 +53,7 @@ class THttpHeadersTest: public TTestBase { UNIT_TEST_SUITE_END(); private: - typedef void (*TAddHeaderFunction)(THttpHeaders&, TStringBuf name, TStringBuf value); + typedef void (*TAddHeaderFunction)(THttpHeaders&, TStringBuf name, TStringBuf value); typedef void (*TAddOrReplaceHeaderFunction)(THttpHeaders&, TStringBuf name, TStringBuf value); public: @@ -65,11 +65,11 @@ public: void TestFindHeader(); private: - static void AddHeaderImpl1Arg(THttpHeaders& headers, TStringBuf name, TStringBuf value) { + static void AddHeaderImpl1Arg(THttpHeaders& headers, TStringBuf name, TStringBuf value) { headers.AddHeader(THttpInputHeader(TString(name), TString(value))); } - static void AddHeaderImpl2Args(THttpHeaders& headers, TStringBuf name, TStringBuf value) { + static void AddHeaderImpl2Args(THttpHeaders& headers, TStringBuf name, TStringBuf value) { headers.AddHeader(TString(name), TString(value)); } @@ -156,7 +156,7 @@ void THttpHeadersTest::TestAddHeaderTemplateness() { h1.AddHeader("h1", "v1"); h1.AddHeader("h2", TString("v2")); h1.AddHeader("h3", TStringBuf("v3")); - h1.AddHeader("h4", TStringBuf("v4")); + h1.AddHeader("h4", TStringBuf("v4")); THeadersExistence h2; h2.Add("h1", "v1"); |