From: Denys Vlasenko Date: Tue, 11 Jan 2011 16:59:45 +0000 (+0100) Subject: httpd: send correct mtime for .gz files X-Git-Tag: 1_19_0~408 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8030a1484917d5b71d5ccd1a1d28a29da7a3d7f0;p=oweals%2Fbusybox.git httpd: send correct mtime for .gz files Signed-off-by: Denys Vlasenko --- diff --git a/networking/httpd.c b/networking/httpd.c index fa42d9850..b8113a843 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1522,6 +1522,7 @@ static NOINLINE void send_file_and_exit(const char *url, int what) struct stat sb; fstat(fd, &sb); file_size = sb.st_size; + last_mod = sb.st_mtime; } else { IF_FEATURE_HTTPD_GZIP(content_gzip = 0;) fd = open(url, O_RDONLY);