diff options
Diffstat (limited to 'chrome_frame/npapi_url_request.cc')
-rw-r--r-- | chrome_frame/npapi_url_request.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome_frame/npapi_url_request.cc b/chrome_frame/npapi_url_request.cc index ac091df..885c390 100644 --- a/chrome_frame/npapi_url_request.cc +++ b/chrome_frame/npapi_url_request.cc @@ -91,14 +91,8 @@ bool NPAPIUrlRequest::Start() { buffer += base::IntToString(data_len); buffer += "\r\n\r\n"; } - - std::string data; - data.resize(data_len); - uint32 bytes_read; - upload_data_->Read(&data[0], data_len, - reinterpret_cast<ULONG*>(&bytes_read)); - DCHECK_EQ(data_len, bytes_read); - buffer += data; + buffer.append(reinterpret_cast<char*>(&upload_data_[0]), + upload_data_.size()); result = npapi::PostURLNotify(instance_, url().c_str(), NULL, buffer.length(), buffer.c_str(), false, this); |