summaryrefslogtreecommitdiff
path: root/libsoup/soup-cache.c
diff options
context:
space:
mode:
authorSergio Villar Senin <svillar@igalia.com>2012-01-27 18:56:21 +0100
committerSergio Villar Senin <svillar@igalia.com>2012-02-14 12:22:02 +0100
commita1d5f80e2773d6f294eef9bea1212a381b36b89f (patch)
tree907fd9d1ece0404374d4d04216f43c65ef9af2d6 /libsoup/soup-cache.c
parente0a2af18a132e65b94c5033bc5142f9be2ddd616 (diff)
downloadlibsoup-a1d5f80e2773d6f294eef9bea1212a381b36b89f.tar.gz
SoupCache: some issues in SoupCache (3/3)
Check that cache control is not blank to prevent some criticals. https://bugzilla.gnome.org/show_bug.cgi?id=668865
Diffstat (limited to 'libsoup/soup-cache.c')
-rw-r--r--libsoup/soup-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index 4002a06b..6ee6dd9d 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -164,7 +164,7 @@ get_cacheability (SoupCache *cache, SoupMessage *msg)
return SOUP_CACHE_UNCACHEABLE;
cache_control = soup_message_headers_get (msg->response_headers, "Cache-Control");
- if (cache_control) {
+ if (cache_control && *cache_control) {
GHashTable *hash;
SoupCachePrivate *priv = SOUP_CACHE_GET_PRIVATE (cache);