| Index: net/base/upload_data.cc
|
| diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
|
| index f148cac142a7fec5fa17de062accebe3b6e0625b..e4873c25ac17319187a58dfd9066b1f3e05874d7 100644
|
| --- a/net/base/upload_data.cc
|
| +++ b/net/base/upload_data.cc
|
| @@ -68,13 +68,8 @@ uint64 UploadData::Element::GetContentLength() {
|
| }
|
|
|
| void UploadData::Element::SetToChunk(const char* bytes, int bytes_len) {
|
| - std::string chunk_length = StringPrintf("%X\r\n", bytes_len);
|
| bytes_.clear();
|
| - bytes_.insert(bytes_.end(), chunk_length.data(),
|
| - chunk_length.data() + chunk_length.length());
|
| bytes_.insert(bytes_.end(), bytes, bytes + bytes_len);
|
| - const char* crlf = "\r\n";
|
| - bytes_.insert(bytes_.end(), crlf, crlf + 2);
|
| type_ = TYPE_CHUNK;
|
| is_last_chunk_ = (bytes_len == 0);
|
| }
|
|
|