summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2006-02-08 13:40:25 +0000
committerJan Kneschke <jan@kneschke.de>2006-02-08 13:40:25 +0000
commit886540c7c3a6c2494a999bb95b3512061e2aa888 (patch)
tree0162a792a12ba6d3bbbc6cd14d6d204c178c40c6 /src
parent21af09d270a7dfc4333e7fd2613ab4d2fc9dde82 (diff)
downloadlighttpd-git-886540c7c3a6c2494a999bb95b3512061e2aa888.tar.gz
301 has a content now, so we need a file_finished to say that we have not content
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@989 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src')
-rw-r--r--src/http-header-glue.c1
-rw-r--r--src/mod_redirect.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c
index 1e740986..4771a5ee 100644
--- a/src/http-header-glue.c
+++ b/src/http-header-glue.c
@@ -194,6 +194,7 @@ int http_response_redirect_to_directory(server *srv, connection *con) {
response_header_insert(srv, con, CONST_STR_LEN("Location"), CONST_BUF_LEN(o));
con->http_status = 301;
+ con->file_finished = 1;
buffer_free(o);
diff --git a/src/mod_redirect.c b/src/mod_redirect.c
index 60406315..079e7562 100644
--- a/src/mod_redirect.c
+++ b/src/mod_redirect.c
@@ -245,6 +245,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->file_finished = 1;
return HANDLER_FINISHED;
}