mirror of
https://github.com/sheumann/hush.git
synced 2025-01-13 21:31:51 +00:00
httpd: send correct mtime for .gz files
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
dc7e5c46b0
commit
8030a14849
@ -1522,6 +1522,7 @@ static NOINLINE void send_file_and_exit(const char *url, int what)
|
|||||||
struct stat sb;
|
struct stat sb;
|
||||||
fstat(fd, &sb);
|
fstat(fd, &sb);
|
||||||
file_size = sb.st_size;
|
file_size = sb.st_size;
|
||||||
|
last_mod = sb.st_mtime;
|
||||||
} else {
|
} else {
|
||||||
IF_FEATURE_HTTPD_GZIP(content_gzip = 0;)
|
IF_FEATURE_HTTPD_GZIP(content_gzip = 0;)
|
||||||
fd = open(url, O_RDONLY);
|
fd = open(url, O_RDONLY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user