From b86889f02743259fe3e39352bb58b1654cefbc55 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Wed, 13 Dec 2006 11:53:13 +0000 Subject: [PATCH] %Z gives UTC. Apache uses GMT instead, and wget complains about an invalid header when it sees UTC, so switch. --- trunk/darkhttpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/darkhttpd.c b/trunk/darkhttpd.c index 2ae7fbb..f1c6cb5 100644 --- a/trunk/darkhttpd.c +++ b/trunk/darkhttpd.c @@ -1276,7 +1276,7 @@ static char *rfc1123_date(char *dest, const time_t when) { time_t now = when; if (strftime(dest, DATE_LEN, - "%a, %d %b %Y %H:%M:%S %Z", gmtime(&now) ) == 0) + "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now) ) == 0) errx(1, "strftime() failed [%s]", dest); return dest; }