X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdirplex.c;fp=src%2Fdirplex.c;h=46342830c55b380499b8b068a431577f2e9287b9;hb=d58ed97c97e7e9b58eec06c02254b35a22ab4969;hp=0472159577b6793a9ef839010735df328640dc60;hpb=8dce6d19a5b9c10a15bb9f18e3885d74da075611;p=ashd.git diff --git a/src/dirplex.c b/src/dirplex.c index 0472159..4634283 100644 --- a/src/dirplex.c +++ b/src/dirplex.c @@ -345,7 +345,7 @@ static void handlefile(struct hthead *req, int fd, char *path) headappheader(req, "X-Ash-File", path); if(((pat = findmatch(path, 0)) == NULL) && ((pat = findmatch(path, 1)) == NULL)) { - /* XXX: Send a 500 error? 404? */ + simpleerror(fd, 404, "Not Found", "The requested URL has no corresponding resource."); return; } if((ch = findchild(path, pat->childnm)) == NULL) {