From 852e6780072e970d547897a58bad6cde858ae998 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 15 Aug 2006 10:36:43 +0000 Subject: [PATCH] Fix a bug in previous commit: an extra CR LF was inserted after the Date header in a 304 response. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@825 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index 342feb18..6143ce09 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -82,7 +82,7 @@ res_do_304(struct sess *sp) 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); -- 2.39.5