[librest] tests/proxy-continuous: Simplify the code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] tests/proxy-continuous: Simplify the code
- Date: Thu, 17 Sep 2015 12:38:05 +0000 (UTC)
commit 199a39c25355e33f39bfcb0ad2a59401fd20705b
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Sep 17 14:18:13 2015 +0200
tests/proxy-continuous: Simplify the code
https://bugzilla.gnome.org/show_bug.cgi?id=755124
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]