diff options
Diffstat (limited to 'chrome_frame/plugin_url_request.cc')
-rw-r--r-- | chrome_frame/plugin_url_request.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome_frame/plugin_url_request.cc b/chrome_frame/plugin_url_request.cc index a8a14c7..cfc798b 100644 --- a/chrome_frame/plugin_url_request.cc +++ b/chrome_frame/plugin_url_request.cc @@ -43,11 +43,13 @@ bool PluginUrlRequest::Initialize(PluginUrlRequestDelegate* delegate, if (FAILED(hr)) { NOTREACHED(); } else { - post_data_len_ = upload_data->GetContentLengthSync(); upload_stream->AddRef(); upload_stream->Initialize(upload_data); upload_data_.Attach(upload_stream); is_chunked_upload_ = upload_data->is_chunked(); + STATSTG stat; + upload_stream->Stat(&stat, STATFLAG_NONAME); + post_data_len_ = stat.cbSize.QuadPart; } } |