X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hreq.c;h=d0adda6eb9bcdeae287696ba6c072eb81eedf090;hb=bd68881a7977d2fe63d4ca85b757ed9c127ec21d;hp=cc12da59713e0a06704c1a71bb0f54ef597824ee;hpb=960eb7a48488b8c183e4462fb26e36a06e69d3b5;p=src%2Fapp-framework-binder.git 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)