Commit d6121790 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Oops, don't override fetch failure status.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4545 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 397c9f0b
......@@ -497,10 +497,11 @@ FetchBody(struct sess *sp)
mklen = 1;
}
if (http_HdrIs(hp, H_Connection, "close"))
if (cls == 0 && http_HdrIs(hp, H_Connection, "close"))
cls = 1;
if (hp->protover < 1.1 && !http_HdrIs(hp, H_Connection, "keep-alive"))
if (cls == 0 && hp->protover < 1.1 &&
!http_HdrIs(hp, H_Connection, "keep-alive"))
cls = 1;
if (cls < 0) {
......
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