Commit 4b124852 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only set chunked mode if we actually want the body (ie: Not HEAD)



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5690 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ef9c880d
......@@ -197,7 +197,9 @@ cnt_deliver(struct sess *sp)
* can make it any different size
*/
sp->wrk->res_mode |= RES_LEN;
else if (sp->http->protover >= 1.1) {
else if (!sp->wantbody) {
/* Nothing */
} else if (sp->http->protover >= 1.1) {
sp->wrk->res_mode |= RES_CHUNKED;
} else {
sp->wrk->res_mode |= RES_EOF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment