| Index: net/base/upload_data.cc
|
| diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
|
| index 490029cda28b2f6ed2346acd5cbeb3728de54401..83df5ed7373efd734235e423ae2f1661c78d33ae 100644
|
| --- a/net/base/upload_data.cc
|
| +++ b/net/base/upload_data.cc
|
| @@ -29,13 +29,8 @@ UploadData::Element::~Element() {
|
| }
|
|
|
| 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);
|
| }
|
|
|