| Index: net/http/http_stream_parser.cc
|
| diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
|
| index 58bbf9271f99af8dbfd9cb1fd2f3b7a3f336a076..14bb71c13c73da9fc4ea2e8ad71ce72b31778490 100644
|
| --- a/net/http/http_stream_parser.cc
|
| +++ b/net/http/http_stream_parser.cc
|
| @@ -208,6 +208,7 @@ HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection,
|
| read_buf_unused_offset_(0),
|
| response_header_start_offset_(-1),
|
| received_bytes_(0),
|
| + sent_bytes_(0),
|
| response_body_length_(-1),
|
| response_body_read_(0),
|
| user_read_buf_(NULL),
|
| @@ -474,6 +475,7 @@ int HttpStreamParser::DoSendHeadersComplete(int result) {
|
| return result;
|
| }
|
|
|
| + sent_bytes_ += result;
|
| request_headers_->DidConsume(result);
|
| if (request_headers_->BytesRemaining() > 0) {
|
| io_state_ = STATE_SEND_HEADERS;
|
| @@ -531,6 +533,7 @@ int HttpStreamParser::DoSendBodyComplete(int result) {
|
| return result;
|
| }
|
|
|
| + sent_bytes_ += result;
|
| request_body_send_buf_->DidConsume(result);
|
|
|
| io_state_ = STATE_SEND_BODY;
|
|
|