From 68d0e9baae5573d71fa6c686f25477317b4766e5 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 24 Jul 2007 13:56:44 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_response.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5