summaryrefslogtreecommitdiff
path: root/src/mod_redirect.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2008-08-01 16:13:34 +0000
committerStefan Bühler <stbuehler@web.de>2008-08-01 16:13:34 +0000
commitad12e4c5b2032af7b3e987a4b2dea65a4f9802a8 (patch)
treeec5a2d1a8e31d0cad98cf3867af014af7e92c5f9 /src/mod_redirect.c
parentf7dd7203e2d5888424c3b28a92e91593aecc306d (diff)
downloadlighttpd-git-ad12e4c5b2032af7b3e987a4b2dea65a4f9802a8.tar.gz
Insert many con->mode checks; they should prevent two modules to handle the same request if they shouldn't (#631)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2271 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_redirect.c')
-rw-r--r--src/mod_redirect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mod_redirect.c b/src/mod_redirect.c
index bc058579..d5f78640 100644
--- a/src/mod_redirect.c
+++ b/src/mod_redirect.c
@@ -253,6 +253,7 @@ static handler_t mod_redirect_uri_handler(server *srv, connection *con, void *p_
response_header_insert(srv, con, CONST_STR_LEN("Location"), CONST_BUF_LEN(p->location));
con->http_status = 301;
+ con->mode = DIRECT;
con->file_finished = 1;
return HANDLER_FINISHED;