summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-21 14:12:15 +0200
committerdefault <nobody@localhost>2024-05-21 14:12:15 +0200
commit4777fc86cb962917a8f34afb3bfa40f26290815d (patch)
tree268c078531a018f07c1b6d029f14f87134805f7b /xs_httpd.h
parentb95fbe4e438a2ab8a8625875e2eedac38dae572f (diff)
Added const everywhere.
Diffstat (limited to 'xs_httpd.h')
-rw-r--r--xs_httpd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 4d006d7..60933c8 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -16,7 +16,7 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
xs *q_vars = NULL;
xs *p_vars = NULL;
xs *l1, *l2;
- char *v;
+ const char *v;
xs_socket_timeout(fileno(f), 2.0, 0.0);
@@ -60,7 +60,8 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
p = xs_split_n(l, ": ", 1);
if (xs_list_len(p) == 2)
- req = xs_dict_append(req, xs_tolower_i(xs_list_get(p, 0)), xs_list_get(p, 1));
+ req = xs_dict_append(req, xs_tolower_i(
+ (xs_str *)xs_list_get(p, 0)), xs_list_get(p, 1));
}
xs_socket_timeout(fileno(f), 5.0, 0.0);