summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-12 09:28:02 +0100
committerdefault <nobody@localhost>2023-01-12 09:28:02 +0100
commitbb0d8f2a2755af5e11b46d32be84155ba71ea534 (patch)
tree86eb998f66c875dc7d2d40ba3021a3e69ffe9400 /xs_curl.h
parent16be679ecdf12f5324f8778e4e03d21a84d4144f (diff)
Backport from xs.
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 2b07cad..c39c42d 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -21,13 +21,13 @@ static size_t _header_callback(char *buffer, size_t size,
/* get the line */
l = xs_str_new(NULL);
l = xs_append_m(l, buffer, size * nitems);
- l = xs_strip(l);
+ l = xs_strip_i(l);
/* only the HTTP/x 200 line and the last one doesn't have ': ' */
if (xs_str_in(l, ": ") != -1) {
xs *knv = xs_split_n(l, ": ", 1);
- xs_tolower(xs_list_get(knv, 0));
+ xs_tolower_i(xs_list_get(knv, 0));
headers = xs_dict_set(headers, xs_list_get(knv, 0), xs_list_get(knv, 1));
}