diff options
author | yuraaka <yuraaka@yandex-team.ru> | 2022-02-10 16:47:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:05 +0300 |
commit | 5577dc406121f6fb3f45b227c01f4251880193a1 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/http/io/headers.cpp | |
parent | 4230543261d7a38ef4dc14785ae0d45f2da43704 (diff) | |
download | ydb-5577dc406121f6fb3f45b227c01f4251880193a1.tar.gz |
Restoring authorship annotation for <yuraaka@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/io/headers.cpp')
-rw-r--r-- | library/cpp/http/io/headers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/http/io/headers.cpp b/library/cpp/http/io/headers.cpp index 2f6992100c1..4ec27a29e83 100644 --- a/library/cpp/http/io/headers.cpp +++ b/library/cpp/http/io/headers.cpp @@ -60,16 +60,16 @@ THttpHeaders::THttpHeaders(IInputStream* stream) { } bool THttpHeaders::HasHeader(const TStringBuf header) const { - return FindHeader(header); -} - + return FindHeader(header); +} + const THttpInputHeader* THttpHeaders::FindHeader(const TStringBuf header) const { - for (const auto& hdr : Headers_) { + for (const auto& hdr : Headers_) { if (AsciiCompareIgnoreCase(hdr.Name(), header) == 0) { - return &hdr; + return &hdr; } } - return nullptr; + return nullptr; } void THttpHeaders::RemoveHeader(const TStringBuf header) { |