|
|
|
@ -425,8 +425,8 @@ URIHANDLER_FUNC(mod_trigger_b4_dl_uri_handler) {
|
|
|
|
|
/* not found, redirect */
|
|
|
|
|
|
|
|
|
|
response_header_insert(srv, con, CONST_STR_LEN("Location"), CONST_BUF_LEN(p->conf.deny_url));
|
|
|
|
|
|
|
|
|
|
con->http_status = 307;
|
|
|
|
|
con->file_finished = 1;
|
|
|
|
|
|
|
|
|
|
return HANDLER_FINISHED;
|
|
|
|
|
}
|
|
|
|
@ -440,6 +440,7 @@ URIHANDLER_FUNC(mod_trigger_b4_dl_uri_handler) {
|
|
|
|
|
|
|
|
|
|
response_header_insert(srv, con, CONST_STR_LEN("Location"), CONST_BUF_LEN(p->conf.deny_url));
|
|
|
|
|
con->http_status = 307;
|
|
|
|
|
con->file_finished = 1;
|
|
|
|
|
|
|
|
|
|
if (p->conf.db) {
|
|
|
|
|
if (0 != gdbm_delete(p->conf.db, key)) {
|
|
|
|
@ -490,6 +491,7 @@ URIHANDLER_FUNC(mod_trigger_b4_dl_uri_handler) {
|
|
|
|
|
response_header_insert(srv, con, CONST_STR_LEN("Location"), CONST_BUF_LEN(p->conf.deny_url));
|
|
|
|
|
|
|
|
|
|
con->http_status = 307;
|
|
|
|
|
con->file_finished = 1;
|
|
|
|
|
|
|
|
|
|
return HANDLER_FINISHED;
|
|
|
|
|
}
|
|
|
|
|