kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 04f4306cf20e59469149da8b73c433ab0bfad232
parent 04deeeafb993bc8652eebcbdcfd76d5a06081858
Author: Joris Vink <joris@coders.se>
Date:   Sun,  8 Jul 2018 15:58:56 +0000

simplify logic

Diffstat:
src/filemap.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/filemap.c b/src/filemap.c @@ -179,9 +179,7 @@ filemap_serve(struct http_request *req, struct filemap_entry *map) lookup: if (realpath(fpath, rpath) == NULL) { if (errno == ENOENT) { - if (index || kore_filemap_ext == NULL) { - req->status = HTTP_STATUS_NOT_FOUND; - } else { + if (index == 0 && kore_filemap_ext != NULL) { len = snprintf(fpath, sizeof(fpath), "%s/%s%s", map->ondisk, path, kore_filemap_ext);