summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-21 09:31:05 +0200
committerdefault <nobody@localhost>2022-09-21 09:31:05 +0200
commitd2bdaf378fa050b98432993ec378bbfd54d4d964 (patch)
tree3b192c98b96a06469f089173f9e73f7c7d0f1038 /xs_curl.h
parent9573dbcdb698bf863af9921e305ff2d818d30fe2 (diff)
More work in http signed request.
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/xs_curl.h b/xs_curl.h
index 6309ea8..a1a1bcf 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -138,10 +138,7 @@ d_char *xs_http_request(char *method, char *url, d_char *headers,
/* fill the request headers */
p = headers;
while (xs_dict_iter(&p, &k, &v)) {
- xs *h;
-
- const char *args[] = { k, v, NULL };
- h = xs_fmt("%s: %s", args);
+ xs *h = xs_fmt("%s: %s", k, v);
list = curl_slist_append(list, h);
}