diff options
author | default <nobody@localhost> | 2022-09-25 07:42:57 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-25 07:42:57 +0200 |
commit | b070d2d8f88866bf83103c34c4d86352c6b74e8d (patch) | |
tree | f3d48f9a370b92560e25cc0d96dac252ee851b96 /activitypub.c | |
parent | 58de0798f29d8ee29759bd4076e35702027f113d (diff) |
The HTTP request headers are stored in a plain dict.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index 976222a..ec1d820 100644 --- a/activitypub.c +++ b/activitypub.c @@ -258,8 +258,7 @@ int activitypub_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype) { int status = 200; - char *headers = xs_dict_get(req, "headers"); - char *accept = xs_dict_get(headers, "accept"); + char *accept = xs_dict_get(req, "accept"); snac snac; xs *msg = NULL; @@ -321,8 +320,7 @@ int activitypub_post_handler(d_char *req, char *q_path, /* processes an input message */ { int status = 202; /* accepted */ - char *headers = xs_dict_get(req, "headers"); - char *i_ctype = xs_dict_get(headers, "content-type"); + char *i_ctype = xs_dict_get(req, "content-type"); snac snac; if (i_ctype == NULL) |