disable chunked encoding header on a HEAD request

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1375 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Jan Kneschke 2006-10-05 10:23:27 +00:00
parent b8df99f3db
commit ba52eb0e41
1 changed files with 5 additions and 0 deletions

View File

@ -556,7 +556,12 @@ static int connection_handle_write_prepare(server *srv, connection *con) {
}
if (con->request.http_method == HTTP_METHOD_HEAD) {
/**
* a HEAD request has the same as a GET
* without the content
*/
chunkqueue_reset(con->write_queue);
con->response.transfer_encoding &= ~HTTP_TRANSFER_ENCODING_CHUNKED;
}
http_response_write_header(srv, con);