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 3e4b9f4fe80d930ec8c05ae43e70eefc1ddaad99
parent 04077c66b6b12abb01cb0db87bff891bb510c388
Author: Joris Vink <joris@coders.se>
Date:   Wed,  4 Jul 2018 14:26:38 +0200

let filemaps be matched to the domains.

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

diff --git a/src/filemap.c b/src/filemap.c @@ -103,6 +103,9 @@ filemap_resolve(struct http_request *req) best_len = 0; TAILQ_FOREACH(entry, &maps, list) { + if (entry->domain != req->hdlr->dom) + continue; + if (!strncmp(entry->root, req->path, entry->root_len)) { if (best == NULL || entry->root_len > best_len) { best = entry;