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