From 88042277980edb34f5bc495dfc8b20a05cfe71c2 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 22 Apr 2023 01:21:09 +0200 Subject: New function mastoapi_put_handler(). --- httpd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index 3168323..79d489f 100644 --- a/httpd.c +++ b/httpd.c @@ -215,6 +215,16 @@ void httpd_connection(FILE *f) status = html_post_handler(req, q_path, payload, p_size, &body, &b_size, &ctype); } + else + if (strcmp(method, "PUT") == 0) { + +#ifndef NO_MASTODON_API + if (status == 0) + status = mastoapi_put_handler(req, q_path, + payload, p_size, &body, &b_size, &ctype); +#endif + + } /* let's go */ headers = xs_dict_new(); -- cgit v1.2.3