diff options
author | default <nobody@localhost> | 2022-09-19 23:08:59 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-19 23:08:59 +0200 |
commit | e5167b7b497175261df09a53c58d90395d108eb2 (patch) | |
tree | 70c663ad5bc0646e0fffee7eeeb3ffe57afd11ac /xs_httpd.h | |
parent | dd1a5ff1472eeadbfd84eaa1eab55af54179200a (diff) |
Renamed xs_splitn() to xs_split_n().
Diffstat (limited to 'xs_httpd.h')
-rw-r--r-- | xs_httpd.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -57,7 +57,7 @@ d_char *xs_url_vars(char *str) l = args; while (xs_list_iter(&l, &v)) { - xs *kv = xs_splitn(v, "=", 2); + xs *kv = xs_split_n(v, "=", 2); if (xs_list_len(kv) == 2) vars = xs_dict_append(vars, @@ -98,7 +98,7 @@ d_char *xs_httpd_request(FILE *f) { /* split the path with its optional variables */ xs *udp = xs_url_dec(xs_list_get(l2, 1)); - xs *pnv = xs_splitn(udp, "?", 1); + xs *pnv = xs_split_n(udp, "?", 1); /* store the path */ headers = xs_dict_append(headers, "path", xs_list_get(pnv, 0)); @@ -118,7 +118,7 @@ d_char *xs_httpd_request(FILE *f) break; /* split header and content */ - p = xs_splitn(l, ": ", 1); + p = xs_split_n(l, ": ", 1); if (xs_list_len(p) == 2) headers = xs_dict_append(headers, |