summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-21 18:27:30 +0200
committerdefault <nobody@localhost>2022-09-21 18:27:30 +0200
commite7c886beb77a570cdac02bc36077e247618e2e20 (patch)
treeb308aa531635b9237699abadb541d1a99cab7d4a /httpd.c
parent7efb6d5833c20a82ccb4bf2c89e5ce43831db540 (diff)
More httpd work.
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);
}