Incorrect content_length when loading resource

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Incorrect content_length when loading resource

Postby emerick » Mon Apr 12, 2010 10:37 am

The AsyncStart function in browser_resource_loader_bridge.cc contains the following piece of code:

Code: Select all
long offset = resourceStream->Seek(0, SEEK_END);
resourceStream->Seek(0, SEEK_SET);

resource_stream_ = resourceStream;

ResourceLoaderBridge::ResponseInfo info;
info.content_length = static_cast<int64>(offset);


Am I missing something or is the return value from resourceStream->Seek being misused? As far as I'm aware, it returns 0 on success, not an offset.

Emerick
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA

Re: Incorrect content_length when loading resource

Postby magreenblatt » Mon Apr 12, 2010 1:35 pm

Am I missing something or is the return value from resourceStream->Seek being misused?

You are correct. Please create an issue for this :-).
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Incorrect content_length when loading resource

Postby emerick » Mon Apr 12, 2010 1:44 pm

Sure, I created the following issue to track this: http://code.google.com/p/chromiumembedd ... tail?id=83
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 42 guests