diff options
author | default <nobody@localhost> | 2022-09-21 09:31:05 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-21 09:31:05 +0200 |
commit | d2bdaf378fa050b98432993ec378bbfd54d4d964 (patch) | |
tree | 3b192c98b96a06469f089173f9e73f7c7d0f1038 /http.c | |
parent | 9573dbcdb698bf863af9921e305ff2d818d30fe2 (diff) |
More work in http signed request.
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -75,12 +75,12 @@ d_char *http_signed_request(snac *snac, char *method, char *url, /* add the new headers */ hdrs = xs_dict_append(hdrs, "content-type", "application/activity+json"); + hdrs = xs_dict_append(hdrs, "accept", "application/activity+json"); hdrs = xs_dict_append(hdrs, "date", date); hdrs = xs_dict_append(hdrs, "signature", signature); hdrs = xs_dict_append(hdrs, "digest", digest); hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x"); -// return xs_http_request(method, url, hdrs, -// body, b_size, status, payload, p_size); - return NULL; + return xs_http_request(method, url, hdrs, + body, b_size, status, payload, p_size); } |