summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
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,
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 }