summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-21 09:31:05 +0200
committerdefault <nobody@localhost>2022-09-21 09:31:05 +0200
commitd2bdaf378fa050b98432993ec378bbfd54d4d964 (patch)
tree3b192c98b96a06469f089173f9e73f7c7d0f1038 /http.c
parent9573dbcdb698bf863af9921e305ff2d818d30fe2 (diff)
More work in http signed request.
Diffstat (limited to 'http.c')
-rw-r--r--http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/http.c b/http.c
index 2cbcdec..56fbbda 100644
--- a/http.c
+++ b/http.c
@@ -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);
}