diff options
author | Debarshi Ray <debarshir@gnome.org> | 2015-09-17 14:18:13 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2015-09-17 14:18:13 +0200 |
commit | 199a39c25355e33f39bfcb0ad2a59401fd20705b (patch) | |
tree | 4317c33f166c3eda864ed443f04007032875a58a | |
parent | f559868c694c750b330a8cb6b9afd4cf67158b58 (diff) | |
download | librest-199a39c25355e33f39bfcb0ad2a59401fd20705b.tar.gz |
tests/proxy-continuous: Simplify the code
https://bugzilla.gnome.org/show_bug.cgi?id=755124
-rw-r--r-- | tests/proxy-continuous.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/proxy-continuous.c b/tests/proxy-continuous.c index 46f77aa..8d4b6a3 100644 --- a/tests/proxy-continuous.c +++ b/tests/proxy-continuous.c @@ -41,7 +41,6 @@ static gboolean send_chunks (gpointer user_data) { SoupMessage *msg = SOUP_MESSAGE (user_data); - SoupBuffer *buf; guint i; guint8 data[SIZE_CHUNK]; @@ -51,9 +50,7 @@ send_chunks (gpointer user_data) server_count++; } - buf = soup_buffer_new (SOUP_MEMORY_COPY, data, SIZE_CHUNK); - - soup_message_body_append_buffer (msg->response_body, buf); + soup_message_body_append (msg->response_body, SOUP_MEMORY_COPY, data, SIZE_CHUNK); soup_server_unpause_message (server, msg); if (server_count == NUM_CHUNKS * SIZE_CHUNK) |