Commit 56cec2f0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Give the 503 returns a protocol and a response as well.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2094 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ce949615
......@@ -306,8 +306,12 @@ cnt_fetch(struct sess *sp)
if (!i)
RFC2616_cache_policy(sp, sp->obj->http); /* XXX -> VCL */
else
else {
http_PutStatus(sp->wrk, sp->fd, sp->obj->http, 503);
http_PutProtocol(sp->wrk, sp->fd, sp->obj->http, "HTTP/1.1");
http_PutResponse(sp->wrk, sp->fd, sp->obj->http,
"Backend error");
}
sp->err_code = http_GetStatus(sp->obj->http);
VCL_fetch_method(sp);
......
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