X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdirplex%2Fdirplex.c;h=14320ada0fc56fd8ebba1cc18eecd226d57e560d;hb=7fe08a6fe8661e0429e2f2da599bdf84523dc5d5;hp=8b604d2dc945c67717e0e7afb553930b22cd9f35;hpb=cf6e7461a8b2fd0d3c2bb1369046adcf71b71187;p=ashd.git diff --git a/src/dirplex/dirplex.c b/src/dirplex/dirplex.c index 8b604d2..14320ad 100644 --- a/src/dirplex/dirplex.c +++ b/src/dirplex/dirplex.c @@ -59,9 +59,14 @@ static void handle(struct hthead *req, int fd, char *path, struct pattern *pat) { struct child *ch; struct config *ccf; + struct headmod *head; char *twd; - if(!strncmp(path, "./", 2)) + 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);