diff options
| author | 2024-08-30 19:10:26 +0200 | |
|---|---|---|
| committer | 2024-08-30 19:10:26 +0200 | |
| commit | 0218e964b0d73340c8d0c5d9e37991359d7c4be9 (patch) | |
| tree | 9cfc1650abf8780be52dc219e37a311244a294e2 /xs_curl.h | |
| parent | timeline_del() also deletes from the pinned and bookmark caches. (diff) | |
| download | penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.gz penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.xz penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.zip | |
Backport from xs.
Diffstat (limited to '')
| -rw-r--r-- | xs_curl.h | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -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); |