Fix this; previously it would discard the entire message body after
authorDan Winship <danw@src.gnome.org>
Thu, 29 Jan 2009 18:40:24 +0000 (18:40 +0000)
committerDan Winship <danw@src.gnome.org>
Thu, 29 Jan 2009 18:40:24 +0000 (18:40 +0000)
commit2c3134c14a9eee2916e53eda3f99ef40065fc1cd
tree3925cfef3542e8c1110d67908f55326c33163b06
parent6343c5a70b0590c2e57b1407696305d74163ded9
Fix this; previously it would discard the entire message body after

* libsoup/soup-message-body.c (soup_message_body_wrote_chunk): Fix
this; previously it would discard the entire message body after
writing a SOUP_MEMORY_TEMPORARY chunk. Part of WebKit bug 18343.

* libsoup/soup-message-io.c (io_write): use
io->write_chunk->length *before* freeing io->write_chunk.

* tests/chunk-test.c (do_temporary_test): new test to make sure
that TEMPORARY buffers are handled properly.

svn path=/trunk/; revision=1232
ChangeLog
libsoup/soup-message-body.c
libsoup/soup-message-io.c
tests/chunk-test.c