summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs_curl.h b/xs_curl.h
index 215db7f..9b4c229 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -146,8 +146,7 @@ xs_dict *xs_http_request(const char *method, const char *url,
146 } 146 }
147 147
148 /* fill the request headers */ 148 /* fill the request headers */
149 int c = 0; 149 xs_dict_foreach(headers, k, v) {
150 while (xs_dict_next(headers, &k, &v, &c)) {
151 xs *h = xs_fmt("%s: %s", k, v); 150 xs *h = xs_fmt("%s: %s", k, v);
152 151
153 list = curl_slist_append(list, h); 152 list = curl_slist_append(list, h);