Close connection after redirect in trigger_b4_dl

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2200 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2008-07-20 12:58:18 +00:00
parent 0f515626e4
commit cf789917f7
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -27,6 +27,7 @@ NEWS
* Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places (#624)
* merge spawn-fcgi changes from trunk (from @2191)
* let spawn-fcgi propagate exit code from spawned fcgi application
* close connection after redirect in trigger_b4_dl (thx icy)
- 1.4.19 - 2008-03-10

View File

@ -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;
}