diff options
| author | 2024-01-11 17:46:15 +0000 | |
|---|---|---|
| committer | 2024-01-11 17:46:15 +0000 | |
| commit | 285fb589ff1727e61144f17f77cf275c3a5905ce (patch) | |
| tree | 683be057b3f1b659648e0fdecaca59955fc785ab /httpd.c | |
| parent | Added an unveil() call for "/tmp". (diff) | |
| parent | Support DELETE for Mastodon subscriptions (diff) | |
| download | snac2-285fb589ff1727e61144f17f77cf275c3a5905ce.tar.gz snac2-285fb589ff1727e61144f17f77cf275c3a5905ce.tar.xz snac2-285fb589ff1727e61144f17f77cf275c3a5905ce.zip | |
Merge pull request 'Improve support for Mona iOS app' (#100) from jamesoff/snac2:monaapp-support into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/100
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -344,6 +344,14 @@ void httpd_connection(FILE *f) | |||
| 344 | if (strcmp(method, "OPTIONS") == 0) { | 344 | if (strcmp(method, "OPTIONS") == 0) { |
| 345 | status = 200; | 345 | status = 200; |
| 346 | } | 346 | } |
| 347 | else | ||
| 348 | if (strcmp(method, "DELETE") == 0) { | ||
| 349 | #ifndef NO_MASTODON_API | ||
| 350 | if (status == 0) | ||
| 351 | status = mastoapi_delete_handler(req, q_path, | ||
| 352 | &body, &b_size, &ctype); | ||
| 353 | #endif | ||
| 354 | } | ||
| 347 | 355 | ||
| 348 | /* unattended? it's an error */ | 356 | /* unattended? it's an error */ |
| 349 | if (status == 0) { | 357 | if (status == 0) { |