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
commit2c5ea3f3033aa77cf5ea0ec08e6d679c6e68f095 (patch)
tree0162a792a12ba6d3bbbc6cd14d6d204c178c40c6 /src
parentdfd991562839ec760122ac7e8ef213d354605c80 (diff)
downloadlighttpd-git-2c5ea3f3033aa77cf5ea0ec08e6d679c6e68f095.tar.gz
301 has a content now, so we need a file_finished to say that we have not content
git-svn-id: svn://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;
}