diff options
author | Denys Vlasenko | 2011-01-11 17:59:45 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-01-11 17:59:45 +0100 |
commit | 8030a1484917d5b71d5ccd1a1d28a29da7a3d7f0 (patch) | |
tree | dcd95f6ed3507cadd0b4dea208888508bc27f2db | |
parent | dc7e5c46b0204bc3489ee961a631fb00533ae597 (diff) | |
download | busybox-8030a1484917d5b71d5ccd1a1d28a29da7a3d7f0.zip busybox-8030a1484917d5b71d5ccd1a1d28a29da7a3d7f0.tar.gz |
httpd: send correct mtime for .gz files
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | networking/httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index fa42d98..b8113a8 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); |