diff options
| author | 2022-09-21 09:31:05 +0200 | |
|---|---|---|
| committer | 2022-09-21 09:31:05 +0200 | |
| commit | d2bdaf378fa050b98432993ec378bbfd54d4d964 (patch) | |
| tree | 3b192c98b96a06469f089173f9e73f7c7d0f1038 /xs_curl.h | |
| parent | New function xs_sha256_base64(). (diff) | |
| download | penes-snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.tar.gz penes-snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.tar.xz penes-snac2-d2bdaf378fa050b98432993ec378bbfd54d4d964.zip | |
More work in http signed request.
Diffstat (limited to '')
| -rw-r--r-- | xs_curl.h | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -138,10 +138,7 @@ d_char *xs_http_request(char *method, char *url, d_char *headers, | |||
| 138 | /* fill the request headers */ | 138 | /* fill the request headers */ |
| 139 | p = headers; | 139 | p = headers; |
| 140 | while (xs_dict_iter(&p, &k, &v)) { | 140 | while (xs_dict_iter(&p, &k, &v)) { |
| 141 | xs *h; | 141 | xs *h = xs_fmt("%s: %s", k, v); |
| 142 | |||
| 143 | const char *args[] = { k, v, NULL }; | ||
| 144 | h = xs_fmt("%s: %s", args); | ||
| 145 | 142 | ||
| 146 | list = curl_slist_append(list, h); | 143 | list = curl_slist_append(list, h); |
| 147 | } | 144 | } |