mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
mastoapi: Reverted empty ctype rejection.
This commit is contained in:
parent
6e8adc86d0
commit
c648fab797
1 changed files with 0 additions and 12 deletions
12
mastoapi.c
12
mastoapi.c
|
@ -243,9 +243,6 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
|
|||
const char *i_ctype = xs_dict_get(req, "content-type");
|
||||
xs *args = NULL;
|
||||
|
||||
if (i_ctype == NULL)
|
||||
return 0;
|
||||
|
||||
if (i_ctype && xs_startswith(i_ctype, "application/json")) {
|
||||
if (!xs_is_null(payload))
|
||||
args = xs_json_loads(payload);
|
||||
|
@ -2415,9 +2412,6 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
|
|||
xs *args = NULL;
|
||||
const char *i_ctype = xs_dict_get(req, "content-type");
|
||||
|
||||
if (i_ctype == NULL)
|
||||
return 0;
|
||||
|
||||
if (i_ctype && xs_startswith(i_ctype, "application/json")) {
|
||||
if (!xs_is_null(payload))
|
||||
args = xs_json_loads(payload);
|
||||
|
@ -3098,9 +3092,6 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path,
|
|||
xs *args = NULL;
|
||||
const char *i_ctype = xs_dict_get(req, "content-type");
|
||||
|
||||
if (i_ctype == NULL)
|
||||
return 0;
|
||||
|
||||
if (i_ctype && xs_startswith(i_ctype, "application/json")) {
|
||||
if (!xs_is_null(payload))
|
||||
args = xs_json_loads(payload);
|
||||
|
@ -3248,9 +3239,6 @@ int mastoapi_patch_handler(const xs_dict *req, const char *q_path,
|
|||
xs *args = NULL;
|
||||
const char *i_ctype = xs_dict_get(req, "content-type");
|
||||
|
||||
if (i_ctype == NULL)
|
||||
return 0;
|
||||
|
||||
if (i_ctype && xs_startswith(i_ctype, "application/json")) {
|
||||
if (!xs_is_null(payload))
|
||||
args = xs_json_loads(payload);
|
||||
|
|
Loading…
Reference in a new issue