summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Graveley <alex@ximian.com>2001-07-17 00:40:00 +0000
committerAlex Graveley <orph@src.gnome.org>2001-07-17 00:40:00 +0000
commit21e17c964585748cc1279cfbb585b8e3d2fcecc5 (patch)
tree750ed3d127ad168a6ce1d72ec755d7cb68b9abff
parent4014ec1d3f198940ad5bc38e5cf043bab5e194b9 (diff)
downloadlibsoup-21e17c964585748cc1279cfbb585b8e3d2fcecc5.tar.gz
Set len to 0 before calling callback to handle cases where no content
2001-07-16 Alex Graveley <alex@ximian.com> * src/soup-core/soup-transfer.c (soup_transfer_read_cb): Set len to 0 before calling callback to handle cases where no content length is specified. Special thanks goes out to Joe Shaw (joe@ximian.com) for finding this one.
-rw-r--r--ChangeLog7
-rw-r--r--libsoup/soup-transfer.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 32b5d715..3baf7f8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2001-07-16 Alex Graveley <alex@ximian.com>
+ * src/soup-core/soup-transfer.c (soup_transfer_read_cb): Set len
+ to 0 before calling callback to handle cases where no content
+ length is specified. Special thanks goes out to Joe Shaw
+ (joe@ximian.com) for finding this one.
+
+2001-07-16 Alex Graveley <alex@ximian.com>
+
* src/soup-core/soup-private.h: Remove the unused digest_data from
_SoupMessagePrivate.
diff --git a/libsoup/soup-transfer.c b/libsoup/soup-transfer.c
index 7432d212..157b8335 100644
--- a/libsoup/soup-transfer.c
+++ b/libsoup/soup-transfer.c
@@ -199,8 +199,8 @@ soup_transfer_read_cb (GIOChannel *iochannel,
if (r->headers_done_cb) {
GString str;
- gint len;
SoupTransferDone ret;
+ gint len = 0;
str.str = g_strndup (r->recv_buf->data, index);;
str.len = index;