Fix incorrect content length when loading resource (issue #83).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@83 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2010-06-21 18:09:23 +00:00
parent a113522344
commit 2799fccb7d
1 changed files with 2 additions and 1 deletions

View File

@ -322,7 +322,8 @@ class RequestProxy : public URLRequest::Delegate,
// load from the provided resource stream
handled = true;
long offset = resourceStream->Seek(0, SEEK_END);
resourceStream->Seek(0, SEEK_END);
long offset = resourceStream->Tell();
resourceStream->Seek(0, SEEK_SET);
resource_stream_ = resourceStream;