[libsoup/cache] soup-cache: need to finish messages with 0 length body too.



commit 55eb10f32c30504324c62de581f4ff8d619404c2
Author: Xan Lopez <xan gnome org>
Date:   Mon Jul 27 15:02:16 2009 +0300

    soup-cache: need to finish messages with 0 length body too.

 libsoup/soup-cache.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index cad8d95..e46c66b 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -693,6 +693,9 @@ soup_cache_send_response (SoupCache *cache, SoupSession *session, SoupMessage *m
 		g_file_load_contents_async (file, NULL,
 					    (GAsyncReadyCallback)load_contents_ready_cb,
 					    msg);
+	} else {
+		soup_message_got_body (msg);
+		soup_message_finished (msg);
 	}
 }
 



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