summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-05 12:08:17 +0200
committerdefault <nobody@localhost>2022-10-05 12:08:17 +0200
commit3e2cfa48d9e8881cbb3c1934eb33d5c419a76211 (patch)
tree44250c4866a38276887d11b7722f215a49fbb40b /xs_curl.h
parentcea390bdabd65408baf6e46964ca7aaad5727f49 (diff)
Alert if _timeline_find_fn() finds more than one file.
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_curl.h b/xs_curl.h
index a1a1bcf..0dd1afc 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -29,11 +29,11 @@ static size_t _header_callback(char *buffer, size_t size,
xs_tolower(xs_list_get(knv, 0));
- headers = xs_dict_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1));
+ headers = xs_dict_set(headers, xs_list_get(knv, 0), xs_list_get(knv, 1));
}
else
if (xs_startswith(l, "HTTP/"))
- headers = xs_dict_append(headers, "_proto", l);
+ headers = xs_dict_set(headers, "_proto", l);
*userdata = headers;