aboutsummaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-08 06:09:05 +0200
committerdefault <nobody@localhost>2023-04-08 06:09:05 +0200
commit353e393f4de68a209f2d454ca62516e180a3f54a (patch)
tree39c03f8abc377244aa06dc11d18d80b374f224a6 /httpd.c
parent74817a4552e41a34644ec869c6ff7578854fac74 (diff)
New file mastoapi.c.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index ec7a79f..183e194 100644
--- a/httpd.c
+++ b/httpd.c
@@ -186,6 +186,10 @@ void httpd_connection(FILE *f)
payload, p_size, &body, &b_size, &ctype);
if (status == 0)
+ status = mastoapi_post_handler(req, q_path,
+ payload, p_size, &body, &b_size, &ctype);
+
+ if (status == 0)
status = html_post_handler(req, q_path,
payload, p_size, &body, &b_size, &ctype);
}