From ad26c5cbb30bc1f5ed4f90909bc366953ae08b9f Mon Sep 17 00:00:00 2001 From: spl3g Date: Sat, 22 Mar 2025 18:06:45 +0300 Subject: Replace const strings with char* in http_handle_path --- lib/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/http.c') diff --git a/lib/http.c b/lib/http.c index 9612533..64b357b 100644 --- a/lib/http.c +++ b/lib/http.c @@ -233,10 +233,10 @@ int init_server(arena *arena, http_server *serv, char *addr, char *port) { return 0; } -http_handler *http_handle_path(http_server *serv, const_string method, const_string path, http_handler_func handler) { +http_handler *http_handle_path(http_server *serv, char* method, char* path, http_handler_func handler) { http_handler hand = { - .method = method, - .path = path, + .method = cs_from_cstr(method), + .path = cs_from_cstr(path), .func = handler, }; -- cgit v1.2.3