Commit f2f125d3 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Fix a bug in previous commit: an extra CR LF was inserted after the Date

header in a 304 response.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@825 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f0fe46b1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment