2
0
Fork 0

fix status code for failed stat() in core_handle_static()

personal/stbuehler/wip
Thomas Porzelt 2009-03-16 00:37:46 +01:00
parent 030e3cebf2
commit 634b77abf5
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ static handler_t core_handle_static(vrequest *vr, gpointer param, gpointer *cont
/* stat failed */
VR_DEBUG(vr, "stat(\"%s\") failed: %s (%d)", sce->data.path->str, g_strerror(sce->data.err), sce->data.err);
switch (errno) {
switch (sce->data.err) {
case ENOENT:
vr->response.http_status = 404; break;
case EACCES:
@ -328,7 +328,7 @@ static action* core_blank(server *srv, plugin* p, value *val) {
UNUSED(p);
if (val) {
ERROR(srv, "%s", "'empty' action doesn't have parameters");
ERROR(srv, "%s", "'blank' action doesn't have parameters");
return NULL;
}