diff options
| author | 2023-02-02 03:49:38 +0100 | |
|---|---|---|
| committer | 2023-02-02 03:49:38 +0100 | |
| commit | 463439283a3f346a8869df6d17a70f20a0a02419 (patch) | |
| tree | 8c9ec3c9c2552a8dab6ee55bceca9f5951ae8788 /http.c | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-463439283a3f346a8869df6d17a70f20a0a02419.tar.gz penes-snac2-463439283a3f346a8869df6d17a70f20a0a02419.tar.xz penes-snac2-463439283a3f346a8869df6d17a70f20a0a02419.zip | |
Minor header tweaks.
Diffstat (limited to '')
| -rw-r--r-- | http.c | 20 |
1 files changed, 10 insertions, 10 deletions
| @@ -11,19 +11,19 @@ | |||
| 11 | 11 | ||
| 12 | #include "snac.h" | 12 | #include "snac.h" |
| 13 | 13 | ||
| 14 | d_char *http_signed_request(snac *snac, char *method, char *url, | 14 | xs_dict *http_signed_request(snac *snac, const char *method, const char *url, |
| 15 | d_char *headers, | 15 | xs_dict *headers, |
| 16 | d_char *body, int b_size, | 16 | const char *body, int b_size, |
| 17 | int *status, d_char **payload, int *p_size, | 17 | int *status, xs_str **payload, int *p_size, |
| 18 | int timeout) | 18 | int timeout) |
| 19 | /* does a signed HTTP request */ | 19 | /* does a signed HTTP request */ |
| 20 | { | 20 | { |
| 21 | xs *l1; | 21 | xs *l1 = NULL; |
| 22 | xs *date; | 22 | xs *date = NULL; |
| 23 | xs *digest; | 23 | xs *digest = NULL; |
| 24 | xs *s64; | 24 | xs *s64 = NULL; |
| 25 | xs *signature; | 25 | xs *signature = NULL; |
| 26 | xs *hdrs; | 26 | xs *hdrs = NULL; |
| 27 | char *host; | 27 | char *host; |
| 28 | char *target; | 28 | char *target; |
| 29 | char *seckey; | 29 | char *seckey; |