From 6fc2614fe7bfb20ab89cf0aa247297e7a9cc14e3 Mon Sep 17 00:00:00 2001 From: Jose Marcial Vieira Bisneto Date: Mon, 25 Sep 2017 14:40:33 -0300 Subject: [PATCH] Fixed chunked size. --- core/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/api.c b/core/api.c index 5ba25f7..666bdbb 100644 --- a/core/api.c +++ b/core/api.c @@ -576,9 +576,9 @@ void *api_connection_thread (void *ptr) "Connection: close\r\n" "Transfer-Encoding: chunked\r\n" "\r\n" - "%d\r\n" + "%x\r\n" "%s\r\n" - "0\r\n" + "0\r\n\r\n" ,req.buf + req.http_ver, strlen(response_text), response_text); if (response_text != NULL) free(response_text);