diff options
author | dmikhalev <dmikhalev@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
commit | 3b5ee31ed70f690af39dfdec632060610b71b89e (patch) | |
tree | f137aebad00b8064ec63fcd03ebc9fef5121eb9f /library/cpp/http/fetch/httpparser.h | |
parent | 3a0b7cd78a1a8366b3944d8d1e11ef9bb52549bf (diff) | |
download | ydb-3b5ee31ed70f690af39dfdec632060610b71b89e.tar.gz |
Restoring authorship annotation for <dmikhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpparser.h')
-rw-r--r-- | library/cpp/http/fetch/httpparser.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/http/fetch/httpparser.h b/library/cpp/http/fetch/httpparser.h index 769828e4ae6..a93f67aa62a 100644 --- a/library/cpp/http/fetch/httpparser.h +++ b/library/cpp/http/fetch/httpparser.h @@ -161,7 +161,7 @@ protected: : hp_read_closed; if (State == hp_begin_chunk_header) { // unget \n for chunk reader - buf = (char*)buf - 1; + buf = (char*)buf - 1; size++; } if (isReader) @@ -223,7 +223,7 @@ protected: if (isReader) return ChunkSize; size -= ChunkSize; - buf = (char*)buf + ChunkSize; + buf = (char*)buf + ChunkSize; } else { Header->entity_size += size; ChunkSize -= size; @@ -252,7 +252,7 @@ public: } void Parse(void* buf, long size) { - TBaseT::ParseGeneric(buf, size); + TBaseT::ParseGeneric(buf, size); } }; @@ -310,7 +310,7 @@ public: return Eoferr = -1; } } - Chunk = ParseGeneric(Ptr, Size); + Chunk = ParseGeneric(Ptr, Size); buf = Ptr; Ptr = (char*)Ptr + Chunk; Size -= Chunk; @@ -330,7 +330,7 @@ protected: while (State == hp_in_header) { if ((Size = (long)Reader::Read(Ptr)) < 0) return Eoferr = -1; - ParseGeneric(Ptr, Size); + ParseGeneric(Ptr, Size); } if (State == hp_error) return Eoferr = -1; |