[libsoup] SoupCache: fix the timestamp for responses



commit a500e1fb7be2510806cb5f002cc5c96e839bbea8
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Nov 30 18:18:15 2017 +0200

    SoupCache: fix the timestamp for responses
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791031

 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 5964d60..682625e 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -855,7 +855,7 @@ soup_cache_content_processor_wrap_input (SoupContentProcessor *processor,
                soup_cache_entry_remove (cache, entry, TRUE);
 
        request_time = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (msg), "request-time"));
-       response_time = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (msg), "request-time"));
+       response_time = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (msg), "response-time"));
        entry = soup_cache_entry_new (cache, msg, request_time, response_time);
        entry->hits = 1;
        entry->dirty = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]