[experimental-ims] e725920 Remove old Date: header before adding our new one.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Dec 18 10:27:40 CET 2014
commit e725920a03e5329949635ced22d02f52ab91a5b9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Mar 9 09:58:41 2012 +0000
Remove old Date: header before adding our new one.
Submitted by: scoof
Fixes #1104
diff --git a/bin/varnishd/cache/cache_response.c b/bin/varnishd/cache/cache_response.c
index 4760c12..1e065ba 100644
--- a/bin/varnishd/cache/cache_response.c
+++ b/bin/varnishd/cache/cache_response.c
@@ -128,6 +128,7 @@ RES_BuildHttp(const struct sess *sp)
if (req->res_mode & RES_CHUNKED)
http_SetHeader(req->resp, "Transfer-Encoding: chunked");
+ http_Unset(req->resp, H_Date);
VTIM_format(VTIM_real(), time_str);
http_PrintfHeader(req->resp, "Date: %s", time_str);
More information about the varnish-commit
mailing list