summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
authorGravatar default2022-09-19 23:08:59 +0200
committerGravatar default2022-09-19 23:08:59 +0200
commite5167b7b497175261df09a53c58d90395d108eb2 (patch)
tree70c663ad5bc0646e0fffee7eeeb3ffe57afd11ac /xs_httpd.h
parentRenamed user functions. (diff)
downloadpenes-snac2-e5167b7b497175261df09a53c58d90395d108eb2.tar.gz
penes-snac2-e5167b7b497175261df09a53c58d90395d108eb2.tar.xz
penes-snac2-e5167b7b497175261df09a53c58d90395d108eb2.zip
Renamed xs_splitn() to xs_split_n().
Diffstat (limited to 'xs_httpd.h')
-rw-r--r--xs_httpd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 3d520ec..d15a473 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -57,7 +57,7 @@ d_char *xs_url_vars(char *str)
57 57
58 l = args; 58 l = args;
59 while (xs_list_iter(&l, &v)) { 59 while (xs_list_iter(&l, &v)) {
60 xs *kv = xs_splitn(v, "=", 2); 60 xs *kv = xs_split_n(v, "=", 2);
61 61
62 if (xs_list_len(kv) == 2) 62 if (xs_list_len(kv) == 2)
63 vars = xs_dict_append(vars, 63 vars = xs_dict_append(vars,
@@ -98,7 +98,7 @@ d_char *xs_httpd_request(FILE *f)
98 { 98 {
99 /* split the path with its optional variables */ 99 /* split the path with its optional variables */
100 xs *udp = xs_url_dec(xs_list_get(l2, 1)); 100 xs *udp = xs_url_dec(xs_list_get(l2, 1));
101 xs *pnv = xs_splitn(udp, "?", 1); 101 xs *pnv = xs_split_n(udp, "?", 1);
102 102
103 /* store the path */ 103 /* store the path */
104 headers = xs_dict_append(headers, "path", xs_list_get(pnv, 0)); 104 headers = xs_dict_append(headers, "path", xs_list_get(pnv, 0));
@@ -118,7 +118,7 @@ d_char *xs_httpd_request(FILE *f)
118 break; 118 break;
119 119
120 /* split header and content */ 120 /* split header and content */
121 p = xs_splitn(l, ": ", 1); 121 p = xs_split_n(l, ": ", 1);
122 122
123 if (xs_list_len(p) == 2) 123 if (xs_list_len(p) == 2)
124 headers = xs_dict_append(headers, 124 headers = xs_dict_append(headers,