mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Imported changes from xs.
This commit is contained in:
parent
7cc26cfb39
commit
2766fbd49c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user