diff options
| author | 2023-04-22 01:21:09 +0200 | |
|---|---|---|
| committer | 2023-04-22 01:21:09 +0200 | |
| commit | 88042277980edb34f5bc495dfc8b20a05cfe71c2 (patch) | |
| tree | 670cbaebc367a6bc669c866f3e68ab4cc1cb7f2b /httpd.c | |
| parent | Use static_get_meta() when preparing the attachment. (diff) | |
| download | snac2-88042277980edb34f5bc495dfc8b20a05cfe71c2.tar.gz snac2-88042277980edb34f5bc495dfc8b20a05cfe71c2.tar.xz snac2-88042277980edb34f5bc495dfc8b20a05cfe71c2.zip | |
New function mastoapi_put_handler().
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -215,6 +215,16 @@ void httpd_connection(FILE *f) | |||
| 215 | status = html_post_handler(req, q_path, | 215 | status = html_post_handler(req, q_path, |
| 216 | payload, p_size, &body, &b_size, &ctype); | 216 | payload, p_size, &body, &b_size, &ctype); |
| 217 | } | 217 | } |
| 218 | else | ||
| 219 | if (strcmp(method, "PUT") == 0) { | ||
| 220 | |||
| 221 | #ifndef NO_MASTODON_API | ||
| 222 | if (status == 0) | ||
| 223 | status = mastoapi_put_handler(req, q_path, | ||
| 224 | payload, p_size, &body, &b_size, &ctype); | ||
| 225 | #endif | ||
| 226 | |||
| 227 | } | ||
| 218 | 228 | ||
| 219 | /* let's go */ | 229 | /* let's go */ |
| 220 | headers = xs_dict_new(); | 230 | headers = xs_dict_new(); |