CefResourceHandler & response status

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.

CefResourceHandler & response status

Postby JRub » Thu Mar 07, 2013 12:07 pm

Hello,

I'm using a CefResourceHandler to handle file:/// requests.
In CefResourceHandler::GetResponseHeaders, I call CefResponse::SetStatus to indicate if the request succeeded (200) or not (404).
However, in CefLoadHandler::OnLoadEnd, the status is always 0.

Is this normal?
Should I call CefCallback::Cancel in CefResourceHandler::GetResponseHeaders?
CEF 3.1453.1255 on Windows 7 32bits
JRub
Mentor
 
Posts: 92
Joined: Wed Sep 19, 2012 8:32 am
Location: Paris, France

Re: CefResourceHandler & response status

Postby magreenblatt » Thu Mar 07, 2013 12:17 pm

Depending on what CEF version you're using you might be running into this issue: https://code.google.com/p/chromiumembed ... ail?id=521

A status code of 0 would be normal for the file:// scheme because it's not actually talking to a server that would return response codes, but I don't know if that applies specifically in this case where you're using CefResourceHandler.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 204 guests