From 2a249e824b6c9e2342c80dc0d84d8a15119e5023 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 23 Jul 2011 21:12:00 +0200 Subject: [PATCH] dirplex: Don't strip all of X-Ash-File. --- src/dirplex/dirplex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dirplex/dirplex.c b/src/dirplex/dirplex.c index 8b604d2..c6da4b6 100644 --- a/src/dirplex/dirplex.c +++ b/src/dirplex/dirplex.c @@ -61,7 +61,7 @@ static void handle(struct hthead *req, int fd, char *path, struct pattern *pat) struct config *ccf; char *twd; - if(!strncmp(path, "./", 2)) + if(!strncmp(path, "./", 2) && path[2]) path += 2; if(pat->fchild) { headappheader(req, "X-Ash-File", path); -- 2.11.0