summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorGravatar default2022-09-21 09:31:05 +0200
committerGravatar default2022-09-21 09:31:05 +0200
commitd2bdaf378fa050b98432993ec378bbfd54d4d964 (patch)
tree3b192c98b96a06469f089173f9e73f7c7d0f1038 /http.c
parentNew function xs_sha256_base64(). (diff)
downloadpenes-snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.tar.gz
penes-snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.tar.xz
penes-snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.zip
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,
75 75
76 /* add the new headers */ 76 /* add the new headers */
77 hdrs = xs_dict_append(hdrs, "content-type", "application/activity+json"); 77 hdrs = xs_dict_append(hdrs, "content-type", "application/activity+json");
78 hdrs = xs_dict_append(hdrs, "accept", "application/activity+json");
78 hdrs = xs_dict_append(hdrs, "date", date); 79 hdrs = xs_dict_append(hdrs, "date", date);
79 hdrs = xs_dict_append(hdrs, "signature", signature); 80 hdrs = xs_dict_append(hdrs, "signature", signature);
80 hdrs = xs_dict_append(hdrs, "digest", digest); 81 hdrs = xs_dict_append(hdrs, "digest", digest);
81 hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x"); 82 hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x");
82 83
83// return xs_http_request(method, url, hdrs, 84 return xs_http_request(method, url, hdrs,
84// body, b_size, status, payload, p_size); 85 body, b_size, status, payload, p_size);
85 return NULL;
86} 86}