Browse Source

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
svn/tags/lighttpd-1.4.13
Jan Kneschke 16 years ago
parent
commit
ba52eb0e41
  1. 5
      src/connections.c

5
src/connections.c

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

Loading…
Cancel
Save