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 | |
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')
-rw-r--r-- | library/cpp/http/fetch/httpload.cpp | 2 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpparser.h | 10 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpzreader.h | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/http/fetch/httpload.cpp b/library/cpp/http/fetch/httpload.cpp index 82ea8900b5c..1d59e3f46d8 100644 --- a/library/cpp/http/fetch/httpload.cpp +++ b/library/cpp/http/fetch/httpload.cpp @@ -108,7 +108,7 @@ long httpAgentReader::readPortion(void*& buf) { /************************************************************/ bool httpAgentReader::skipTheRest() { - void* b; + void* b; while (!eof()) readPortion(b); return (State == hp_eof); 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; diff --git a/library/cpp/http/fetch/httpzreader.h b/library/cpp/http/fetch/httpzreader.h index 68eb00853d6..52ac7274eda 100644 --- a/library/cpp/http/fetch/httpzreader.h +++ b/library/cpp/http/fetch/httpzreader.h @@ -94,8 +94,8 @@ public: while (true) { if (Stream.avail_in == 0) { void* tmpin = Stream.next_in; - long res = TBase::Read(tmpin); - Stream.next_in = (Bytef*)tmpin; + long res = TBase::Read(tmpin); + Stream.next_in = (Bytef*)tmpin; if (res <= 0) return res; Stream.avail_in = (uInt)res; |