Imported changes from xs.

This commit is contained in:
default 2022-09-20 13:36:20 +02:00
parent 7cc26cfb39
commit 2766fbd49c

View file

@ -27,6 +27,8 @@ static size_t _header_callback(char *buffer, size_t size,
if (xs_str_in(l, ": ") != -1) { if (xs_str_in(l, ": ") != -1) {
xs *knv = xs_split_n(l, ": ", 1); xs *knv = xs_split_n(l, ": ", 1);
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_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1));
} }
else else