aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch/httpparser.h
diff options
context:
space:
mode:
authordimanne <dimanne@yandex-team.ru>2022-02-10 16:49:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:48 +0300
commit79b3cf0f1d6edfa0268153eddcb48f3467527461 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/fetch/httpparser.h
parent93d66104be406c5b8cdfce7be5546d72d83b547e (diff)
downloadydb-79b3cf0f1d6edfa0268153eddcb48f3467527461.tar.gz
Restoring authorship annotation for <dimanne@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpparser.h')
-rw-r--r--library/cpp/http/fetch/httpparser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/fetch/httpparser.h b/library/cpp/http/fetch/httpparser.h
index cd7228055b..769828e4ae 100644
--- a/library/cpp/http/fetch/httpparser.h
+++ b/library/cpp/http/fetch/httpparser.h
@@ -174,10 +174,10 @@ protected:
case hp_read_alive:
Header->entity_size += size;
- if (Header->entity_size >= Header->content_length) {
+ if (Header->entity_size >= Header->content_length) {
State = hp_eof;
}
-
+
TCheck::CheckDocPart(buf, size, Header);
if (isReader)
return size;
@@ -314,8 +314,8 @@ public:
buf = Ptr;
Ptr = (char*)Ptr + Chunk;
Size -= Chunk;
- if (State == hp_eof) {
- Size = 0;
+ if (State == hp_eof) {
+ Size = 0;
Eoferr = 0;
} else if (State == hp_error)
return Eoferr = -1;