diff options
author | glebx777 <glebx777@yandex-team.ru> | 2022-02-10 16:49:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:44 +0300 |
commit | ab9150ae9d81b97b19a2a6a8b903f9a40791c8b4 (patch) | |
tree | ff7ea20bcb3779c1ae74319692b5b48686d480cc /library/cpp/http/io | |
parent | 5a8cb97e0064c6b1afe060dc7a4a7c9c0eb879be (diff) | |
download | ydb-ab9150ae9d81b97b19a2a6a8b903f9a40791c8b4.tar.gz |
Restoring authorship annotation for <glebx777@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/io')
-rw-r--r-- | library/cpp/http/io/headers.cpp | 8 | ||||
-rw-r--r-- | library/cpp/http/io/headers.h | 4 |
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..180b939de4 100644 --- a/library/cpp/http/io/headers.cpp +++ b/library/cpp/http/io/headers.cpp @@ -67,11 +67,11 @@ const THttpInputHeader* THttpHeaders::FindHeader(const TStringBuf header) const for (const auto& hdr : Headers_) { if (AsciiCompareIgnoreCase(hdr.Name(), header) == 0) { return &hdr; - } - } + } + } return nullptr; -} - +} + void THttpHeaders::RemoveHeader(const TStringBuf header) { for (auto h = Headers_.begin(); h != Headers_.end(); ++h) { if (AsciiCompareIgnoreCase(h->Name(), header) == 0) { diff --git a/library/cpp/http/io/headers.h b/library/cpp/http/io/headers.h index a71793d1c6..e480b7ecb1 100644 --- a/library/cpp/http/io/headers.h +++ b/library/cpp/http/io/headers.h @@ -99,9 +99,9 @@ public: AddOrReplaceHeader(THttpInputHeader(std::move(name), ToString(value))); } - // Проверяет, есть ли такой заголовок + // Проверяет, есть ли такой заголовок bool HasHeader(TStringBuf header) const; - + /// Удаляет заголовок, если он есть. void RemoveHeader(TStringBuf header); |