From 2766fbd49cfba346dbaea1914adc4118e1176e1e Mon Sep 17 00:00:00 2001 From: default Date: Tue, 20 Sep 2022 13:36:20 +0200 Subject: [PATCH] Imported changes from xs. --- xs_curl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs_curl.h b/xs_curl.h index 3c6e3c5..6309ea8 100644 --- a/xs_curl.h +++ b/xs_curl.h @@ -27,6 +27,8 @@ static size_t _header_callback(char *buffer, size_t size, if (xs_str_in(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)); } else