Don't check the status code when storing in the cache
This commit is contained in:
parent
ea6ae9b9e6
commit
10b6cbb50a
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ web_cache_session_request_unqueued_cb (SoupSession* session,
|
||||||
|
|
||||||
/* g_debug ("request unqueued: %d", msg->status_code); */
|
/* g_debug ("request unqueued: %d", msg->status_code); */
|
||||||
|
|
||||||
if (uri && msg->status_code != SOUP_STATUS_OK && g_str_has_prefix (uri, "http"))
|
if (uri && g_str_has_prefix (uri, "http"))
|
||||||
{
|
{
|
||||||
SoupMessageHeaders* hdrs = msg->response_headers;
|
SoupMessageHeaders* hdrs = msg->response_headers;
|
||||||
const gchar* mime_type = soup_message_headers_get_content_type (hdrs, NULL);
|
const gchar* mime_type = soup_message_headers_get_content_type (hdrs, NULL);
|
||||||
|
|
Loading…
Reference in a new issue