diff options
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, | |||
| 258 | char **body, int *b_size, char **ctype) | 258 | char **body, int *b_size, char **ctype) |
| 259 | { | 259 | { |
| 260 | int status = 200; | 260 | int status = 200; |
| 261 | char *headers = xs_dict_get(req, "headers"); | 261 | char *accept = xs_dict_get(req, "accept"); |
| 262 | char *accept = xs_dict_get(headers, "accept"); | ||
| 263 | snac snac; | 262 | snac snac; |
| 264 | xs *msg = NULL; | 263 | xs *msg = NULL; |
| 265 | 264 | ||
| @@ -321,8 +320,7 @@ int activitypub_post_handler(d_char *req, char *q_path, | |||
| 321 | /* processes an input message */ | 320 | /* processes an input message */ |
| 322 | { | 321 | { |
| 323 | int status = 202; /* accepted */ | 322 | int status = 202; /* accepted */ |
| 324 | char *headers = xs_dict_get(req, "headers"); | 323 | char *i_ctype = xs_dict_get(req, "content-type"); |
| 325 | char *i_ctype = xs_dict_get(headers, "content-type"); | ||
| 326 | snac snac; | 324 | snac snac; |
| 327 | 325 | ||
| 328 | if (i_ctype == NULL) | 326 | if (i_ctype == NULL) |