aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/server.c b/server.c
index ec44649..33eda69 100644
--- a/server.c
+++ b/server.c
@@ -481,8 +481,15 @@ handle_open_conn(struct pollfd *fds, struct client *c)
return;
}
- if (!apply_block_return(fds, c))
- open_file(fds, c);
+ if (apply_block_return(fds, c))
+ return;
+
+ if (c->host->entrypoint != NULL) {
+ start_cgi(c->host->entrypoint, c->iri.path, fds, c);
+ return;
+ }
+
+ open_file(fds, c);
}
static void