diff options
author | bmichail <bmichail@yandex-team.ru> | 2022-02-10 16:49:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:43 +0300 |
commit | 5a8cb97e0064c6b1afe060dc7a4a7c9c0eb879be (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/io/headers.cpp | |
parent | 3b7286992fb97a312d696ee90ec274a6208f2859 (diff) | |
download | ydb-5a8cb97e0064c6b1afe060dc7a4a7c9c0eb879be.tar.gz |
Restoring authorship annotation for <bmichail@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 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/http/io/headers.cpp b/library/cpp/http/io/headers.cpp index fdef43cc01..4ec27a29e8 100644 --- a/library/cpp/http/io/headers.cpp +++ b/library/cpp/http/io/headers.cpp @@ -46,15 +46,15 @@ THttpHeaders::THttpHeaders(IInputStream* stream) { TString header; TString line; - bool rdOk = stream->ReadLine(header); - while (rdOk && !header.empty()) { - rdOk = stream->ReadLine(line); + bool rdOk = stream->ReadLine(header); + while (rdOk && !header.empty()) { + rdOk = stream->ReadLine(line); - if (rdOk && ((line[0] == ' ') || (line[0] == '\t'))) { - header += line; - } else { + if (rdOk && ((line[0] == ' ') || (line[0] == '\t'))) { + header += line; + } else { AddHeader(THttpInputHeader(header)); - header = line; + header = line; } } } |