[libsoup] SoupCache: some issues in SoupCache (3/3)
- From: Sergio Villar Senin <svillar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupCache: some issues in SoupCache (3/3)
- Date: Tue, 14 Feb 2012 12:37:47 +0000 (UTC)
commit a1d5f80e2773d6f294eef9bea1212a381b36b89f
Author: Sergio Villar Senin <svillar igalia com>
Date: Fri Jan 27 18:56:21 2012 +0100
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
libsoup/soup-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index 4002a06..6ee6dd9 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]