Browse Source

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
svn/tags/lighttpd-1.4.11
Jan Kneschke 17 years ago
parent
commit
2c5ea3f303
  1. 1
      src/http-header-glue.c
  2. 1
      src/mod_redirect.c

1
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);

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

Loading…
Cancel
Save