Fix previous commit and static forbidden handling

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent be8e8bb3ea
commit 2995cb5ffa
  1. 1
      src/plugin_core.c
  2. 2
      src/virtualrequest.c

@ -235,6 +235,7 @@ static handler_t core_handle_static(vrequest *vr, gpointer param, gpointer *cont
if (CORE_OPTION(CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) {
VR_DEBUG(vr, "not a regular file: '%s'", vr->physical.path->str);
}
if (!vrequest_handle_direct(vr)) return HANDLER_ERROR;
vr->response.http_status = 403;
} else if ((fd = open(vr->physical.path->str, O_RDONLY)) == -1) {
switch (errno) {

@ -278,7 +278,7 @@ static gboolean vrequest_do_handle_actions(vrequest *vr) {
if (CORE_OPTION(CORE_OPTION_DEBUG_REQUEST_HANDLING).boolean) {
VR_DEBUG(vr, "%s", "actions didn't handle request");
}
return FALSE;
return TRUE;
}
/* otherwise state already changed */
break;

Loading…
Cancel
Save