diff options
Diffstat (limited to 'xs_curl.h')
| -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 | } |