From e7c886beb77a570cdac02bc36077e247618e2e20 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 21 Sep 2022 18:27:30 +0200 Subject: More httpd work. --- httpd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index 3d4975e..5fd8bbf 100644 --- a/httpd.c +++ b/httpd.c @@ -2,11 +2,8 @@ /* copyright (c) 2022 grunfink - MIT license */ #include "xs.h" -#include "xs_io.h" #include "xs_encdec.h" #include "xs_json.h" -#include "xs_curl.h" -#include "xs_openssl.h" #include "xs_socket.h" #include "xs_httpd.h" @@ -23,6 +20,11 @@ void httpd_connection(int rs) req = xs_httpd_request(f); + { + xs *j = xs_json_dumps_pp(req, 4); + printf("%s\n", j); + } + fclose(f); } -- cgit v1.2.3