diff options
-rw-r--r-- | net/http/http_chunked_decoder.cc | 4 | ||||
-rw-r--r-- | net/http/http_chunked_decoder.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/net/http/http_chunked_decoder.cc b/net/http/http_chunked_decoder.cc index 43dc71f..1ecb9f4 100644 --- a/net/http/http_chunked_decoder.cc +++ b/net/http/http_chunked_decoder.cc @@ -126,8 +126,8 @@ int HttpChunkedDecoder::ScanForChunkRemaining(const char* buf, int buf_len) { buf_len = static_cast<int>(index_of_semicolon); if (!ParseChunkSize(buf, buf_len, &chunk_remaining_)) { - DLOG(ERROR) << "Failed parsing HEX from: " << - std::string(buf, buf_len); + DLOG(ERROR) << "Failed parsing HEX from: " << + std::string(buf, buf_len); return ERR_INVALID_CHUNKED_ENCODING; } diff --git a/net/http/http_chunked_decoder.h b/net/http/http_chunked_decoder.h index 970d1d1..0e41bb1 100644 --- a/net/http/http_chunked_decoder.h +++ b/net/http/http_chunked_decoder.h @@ -97,12 +97,12 @@ class HttpChunkedDecoder { // Indicates the number of bytes remaining for the current chunk. int chunk_remaining_; - // True if waiting for the terminal CRLF of a chunk's data. - bool chunk_terminator_remaining_; - // A small buffer used to store a partial chunk marker. std::string line_buf_; + // True if waiting for the terminal CRLF of a chunk's data. + bool chunk_terminator_remaining_; + // Set to true when FilterBuf encounters the last-chunk. bool reached_last_chunk_; |