summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2022-09-21 18:27:30 +0200
committerGravatar default2022-09-21 18:27:30 +0200
commite7c886beb77a570cdac02bc36077e247618e2e20 (patch)
treeb308aa531635b9237699abadb541d1a99cab7d4a /httpd.c
parentNew flag srv_running. (diff)
downloadpenes-snac2-e7c886beb77a570cdac02bc36077e247618e2e20.tar.gz
penes-snac2-e7c886beb77a570cdac02bc36077e247618e2e20.tar.xz
penes-snac2-e7c886beb77a570cdac02bc36077e247618e2e20.zip
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 @@
2/* copyright (c) 2022 grunfink - MIT license */ 2/* copyright (c) 2022 grunfink - MIT license */
3 3
4#include "xs.h" 4#include "xs.h"
5#include "xs_io.h"
6#include "xs_encdec.h" 5#include "xs_encdec.h"
7#include "xs_json.h" 6#include "xs_json.h"
8#include "xs_curl.h"
9#include "xs_openssl.h"
10#include "xs_socket.h" 7#include "xs_socket.h"
11#include "xs_httpd.h" 8#include "xs_httpd.h"
12 9
@@ -23,6 +20,11 @@ void httpd_connection(int rs)
23 20
24 req = xs_httpd_request(f); 21 req = xs_httpd_request(f);
25 22
23 {
24 xs *j = xs_json_dumps_pp(req, 4);
25 printf("%s\n", j);
26 }
27
26 fclose(f); 28 fclose(f);
27} 29}
28 30