X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdirplex%2Fdirplex.c;h=14320ada0fc56fd8ebba1cc18eecd226d57e560d;hb=acc2d159e6f946ed6abc7c0e843a483d6478bee3;hp=baf24fac7a845c9267560e118d21f906c9fd26f3;hpb=b70b2d4f237082541d01b4b33abc86ef2b7b2223;p=ashd.git diff --git a/src/dirplex/dirplex.c b/src/dirplex/dirplex.c index baf24fa..14320ad 100644 --- a/src/dirplex/dirplex.c +++ b/src/dirplex/dirplex.c @@ -59,8 +59,15 @@ static void handle(struct hthead *req, int fd, char *path, struct pattern *pat) { struct child *ch; struct config *ccf; + struct headmod *head; char *twd; + for(head = pat->headers; head != NULL; head = head->next) { + headrmheader(req, head->name); + headappheader(req, head->name, head->value); + } + if(!strncmp(path, "./", 2) && path[2]) + path += 2; if(pat->fchild) { headappheader(req, "X-Ash-File", path); stdforkserve(pat->fchild, req, fd, NULL, NULL);