Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dce6d1
)
Send 404 for files with no matches.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 24 Aug 2010 23:00:43 +0000
(
01:00
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 24 Aug 2010 23:00:43 +0000
(
01:00
+0200)
src/dirplex.c
patch
|
blob
|
blame
|
history
diff --git
a/src/dirplex.c
b/src/dirplex.c
index
0472159
..
4634283
100644
(file)
--- 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) {