diff options
Diffstat (limited to 'xs_curl.h')
| -rw-r--r-- | xs_curl.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -25,7 +25,7 @@ static size_t _header_callback(char *buffer, size_t size, | |||
| 25 | 25 | ||
| 26 | /* only the HTTP/x 200 line and the last one doesn't have ': ' */ | 26 | /* only the HTTP/x 200 line and the last one doesn't have ': ' */ |
| 27 | if (xs_str_in(l, ": ") != -1) { | 27 | if (xs_str_in(l, ": ") != -1) { |
| 28 | xs *knv = xs_splitn(l, ": ", 1); | 28 | xs *knv = xs_split_n(l, ": ", 1); |
| 29 | 29 | ||
| 30 | headers = xs_dict_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1)); | 30 | headers = xs_dict_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1)); |
| 31 | } | 31 | } |