diff options
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) | |||
| 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, |