Re: [Vimprobable-users] 404 page downloaded instead of requested file
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
From: Daniel C. <dan...@gm...> - 2014-07-21 21:06:30
|
Hi! I'm not sure if the status_code 200 is the only acceptable status code. I think it would be better to use the macro https://developer.gnome.org/libsoup/stable/libsoup-2.4-soup-status.html#SOUP-STATUS-IS-SUCCESSFUL:CAPS to check if the status is a success, which is for all codes 2xx. It would also be easier to get the http response status direct in the webview_mimetype_cb(). With SoupMessage *msg = webkit_network_request_get_message(request). Daniel |