From b070d2d8f88866bf83103c34c4d86352c6b74e8d Mon Sep 17 00:00:00 2001 From: default Date: Sun, 25 Sep 2022 07:42:57 +0200 Subject: The HTTP request headers are stored in a plain dict. --- activitypub.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'activitypub.c') 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) -- cgit v1.2.3