summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c8
1 files changed, 5 insertions, 3 deletions
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);
}