r1751 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Tue Jul 24 15:56:44 CEST 2007


Author: des
Date: 2007-07-24 15:56:44 +0200 (Tue, 24 Jul 2007)
New Revision: 1751

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
RES_BuildHttp() must be called before RES_WriteObj() to prepare the response
headers.  This fixes #128.


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2007-07-24 13:54:20 UTC (rev 1750)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2007-07-24 13:56:44 UTC (rev 1751)
@@ -50,6 +50,7 @@
 
 	/* synthesize error page and send it */
 	SYN_ErrorPage(sp, code, reason, 0);
+	RES_BuildHttp(sp);
 	RES_WriteObj(sp);
 
 	/* GC the error page */




More information about the varnish-commit mailing list