aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/io/chunk.cpp
diff options
context:
space:
mode:
authorermolovd <ermolovd@yandex-team.ru>2022-02-10 16:47:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:53 +0300
commitb91bcef7c99a119b0846479ef71bfab4beec72ca (patch)
treebe118d54d12a61bc4812ceb0a266a170a2fa3bc9 /library/cpp/http/io/chunk.cpp
parentf421873774cf0b71743afbe5f6677861e66601ea (diff)
downloadydb-b91bcef7c99a119b0846479ef71bfab4beec72ca.tar.gz
Restoring authorship annotation for <ermolovd@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/io/chunk.cpp')
-rw-r--r--library/cpp/http/io/chunk.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/http/io/chunk.cpp b/library/cpp/http/io/chunk.cpp
index 6975d9eac1..7edd115b75 100644
--- a/library/cpp/http/io/chunk.cpp
+++ b/library/cpp/http/io/chunk.cpp
@@ -1,7 +1,7 @@
#include "chunk.h"
-#include "headers.h"
-
+#include "headers.h"
+
#include <util/string/cast.h>
#include <util/generic/utility.h>
#include <util/generic/yexception.h>
@@ -52,13 +52,13 @@ class TChunkedInput::TImpl {
public:
inline TImpl(IInputStream* slave, TMaybe<THttpHeaders>* trailers)
: Slave_(slave)
- , Trailers_(trailers)
+ , Trailers_(trailers)
, Pending_(0)
, LastChunkReaded_(false)
{
- if (Trailers_) {
- Trailers_->Clear();
- }
+ if (Trailers_) {
+ Trailers_->Clear();
+ }
}
inline ~TImpl() {
@@ -127,9 +127,9 @@ private:
return true;
}
- if (Trailers_) {
- Trailers_->ConstructInPlace(Slave_);
- }
+ if (Trailers_) {
+ Trailers_->ConstructInPlace(Slave_);
+ }
LastChunkReaded_ = true;
return false;
@@ -137,13 +137,13 @@ private:
private:
IInputStream* Slave_;
- TMaybe<THttpHeaders>* Trailers_;
+ TMaybe<THttpHeaders>* Trailers_;
size_t Pending_;
bool LastChunkReaded_;
};
TChunkedInput::TChunkedInput(IInputStream* slave, TMaybe<THttpHeaders>* trailers)
- : Impl_(new TImpl(slave, trailers))
+ : Impl_(new TImpl(slave, trailers))
{
}