From ea84c8a7878460d2def973821c745587b8b0f485 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Tue, 30 Aug 2016 23:41:43 +0100 Subject: [PATCH] better json scheme for the mmap data --- httpserver/httpserver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httpserver/httpserver.c b/httpserver/httpserver.c index 78690ea105..a7a811bdca 100644 --- a/httpserver/httpserver.c +++ b/httpserver/httpserver.c @@ -212,8 +212,10 @@ static int httpserver_handle_get_mmap(struct mg_connection* conn, void* cbdata) mg_printf(conn, "{" "\"length\":" STRING_REP_UINT64 "," + "\"compression\":\"deflate\"," "\"compressedLength\":" STRING_REP_ULONG "," - "\"bytesZ85\":\"%s\"" + "\"encoding\":\"Z85\"," + "\"data\":\"%s\"" "}", mmap->len, (size_t)buflen,