aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
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;