summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorGravatar default2022-09-25 21:02:47 +0200
committerGravatar default2022-09-25 21:02:47 +0200
commite132ce5076db459642b07b7e85af80f4c353edf7 (patch)
tree63c823f0d3b023647031a2e02c058a6a9bbc7564 /http.c
parentMinor tweak in http signatures. (diff)
downloadsnac2-e132ce5076db459642b07b7e85af80f4c353edf7.tar.gz
snac2-e132ce5076db459642b07b7e85af80f4c353edf7.tar.xz
snac2-e132ce5076db459642b07b7e85af80f4c353edf7.zip
New function msg_actor().
Diffstat (limited to 'http.c')
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index 79ad239..abc3466 100644
--- a/http.c
+++ b/http.c
@@ -86,6 +86,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url,
86 hdrs = xs_dict_append(hdrs, "date", date); 86 hdrs = xs_dict_append(hdrs, "date", date);
87 hdrs = xs_dict_append(hdrs, "signature", signature); 87 hdrs = xs_dict_append(hdrs, "signature", signature);
88 hdrs = xs_dict_append(hdrs, "digest", digest); 88 hdrs = xs_dict_append(hdrs, "digest", digest);
89 hdrs = xs_dict_append(hdrs, "host", xs_dict_get(srv_config, "host"));
89 hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x"); 90 hdrs = xs_dict_append(hdrs, "user-agent", "snac/2.x");
90 91
91 response = xs_http_request(method, url, hdrs, 92 response = xs_http_request(method, url, hdrs,