From bd68881a7977d2fe63d4ca85b757ed9c127ec21d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 9 May 2016 14:17:01 +0200 Subject: [PATCH] ensure that the copy is done by libmicrohttp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I68d10265e34953e3ad21197f616c838b4b8c2bad Signed-off-by: José Bollo --- src/afb-hreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afb-hreq.c b/src/afb-hreq.c index cc12da59..d0adda6e 100644 --- a/src/afb-hreq.c +++ b/src/afb-hreq.c @@ -663,7 +663,7 @@ static const char *req_raw(struct afb_hreq *hreq, size_t *size) static void req_send(struct afb_hreq *hreq, const char *buffer, size_t size) { - afb_hreq_reply_free(hreq, MHD_HTTP_OK, size, buffer, NULL); + afb_hreq_reply_copy(hreq, MHD_HTTP_OK, size, buffer, NULL); } static ssize_t send_json_cb(json_object *obj, uint64_t pos, char *buf, size_t max) -- 2.16.6