diff options
| author | dimanne <[email protected]> | 2022-02-10 16:49:48 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:48 +0300 |
| commit | 79b3cf0f1d6edfa0268153eddcb48f3467527461 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/fetch/httpparser.h | |
| parent | 93d66104be406c5b8cdfce7be5546d72d83b547e (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpparser.h')
| -rw-r--r-- | library/cpp/http/fetch/httpparser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/fetch/httpparser.h b/library/cpp/http/fetch/httpparser.h index cd7228055b0..769828e4ae6 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; |
