diff options
| author | 2022-09-21 09:31:05 +0200 | |
|---|---|---|
| committer | 2022-09-21 09:31:05 +0200 | |
| commit | d2bdaf378fa050b98432993ec378bbfd54d4d964 (patch) | |
| tree | 3b192c98b96a06469f089173f9e73f7c7d0f1038 /http.c | |
| parent | New function xs_sha256_base64(). (diff) | |
| download | snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.tar.gz snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.tar.xz snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.zip | |
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, | |||
| 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 | } |