r825 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Tue Aug 15 12:36:43 CEST 2006


Author: des
Date: 2006-08-15 12:36:43 +0200 (Tue, 15 Aug 2006)
New Revision: 825

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Fix a bug in previous commit: an extra CR LF was inserted after the Date
header in a 304 response.


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2006-08-15 07:55:17 UTC (rev 824)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2006-08-15 10:36:43 UTC (rev 825)
@@ -82,7 +82,7 @@
 	sp->http->logtag = HTTP_Tx;
 	http_SetResp(sp->fd, sp->http, "HTTP/1.1", "304", "Not Modified");
 	TIM_format(sp->t_req.tv_sec, lm);
-	http_PrintfHeader(sp->fd, sp->http, "Date: %s\r\n", lm);
+	http_PrintfHeader(sp->fd, sp->http, "Date: %s", lm);
 	http_SetHeader(sp->fd, sp->http, "Via: 1.1 varnish");
 	http_PrintfHeader(sp->fd, sp->http, "X-Varnish: %u", sp->xid);
 	TIM_format(sp->obj->last_modified, lm);




More information about the varnish-commit mailing list