From: des Date: Tue, 24 Jul 2007 13:56:44 +0000 (+0000) Subject: RES_BuildHttp() must be called before RES_WriteObj() to prepare the response X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d0e9baae5573d71fa6c686f25477317b4766e5;p=varnish RES_BuildHttp() must be called before RES_WriteObj() to prepare the response headers. This fixes #128. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1751 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index 69180607..06681d10 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -50,6 +50,7 @@ RES_Error(struct sess *sp, int code, const char *reason) /* synthesize error page and send it */ SYN_ErrorPage(sp, code, reason, 0); + RES_BuildHttp(sp); RES_WriteObj(sp); /* GC the error page */