]> err.no Git - varnish/commitdiff
RES_BuildHttp() must be called before RES_WriteObj() to prepare the response
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jul 2007 13:56:44 +0000 (13:56 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jul 2007 13:56:44 +0000 (13:56 +0000)
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

index 69180607437cb2d9497f7f18b54a71f4a4f0415b..06681d10d1226e6b26af45a4d99a52444cbb8182 100644 (file)
@@ -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 */