From 4416e3a28a32a848d99c0b9621256be18a60325c Mon Sep 17 00:00:00 2001 From: default Date: Mon, 20 Jan 2025 18:37:21 +0100 Subject: Fixed check for the basedir (contributed by an-im-dugud). --- httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index eb72c6f..c13402b 100644 --- a/httpd.c +++ b/httpd.c @@ -212,7 +212,7 @@ int server_get_handler(xs_dict *req, const char *q_path, int status = 0; /* is it the server root? */ - if (*q_path == '\0') { + if (*q_path == '\0' || strcmp(q_path, "/") == 0) { const xs_dict *q_vars = xs_dict_get(req, "q_vars"); const char *t = NULL; -- cgit v1.2.3