projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7e5c4
)
httpd: send correct mtime for .gz files
author
Denys Vlasenko
<dvlasenk@redhat.com>
Tue, 11 Jan 2011 16:59:45 +0000
(17:59 +0100)
committer
Denys Vlasenko
<dvlasenk@redhat.com>
Tue, 11 Jan 2011 16:59:45 +0000
(17:59 +0100)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index fa42d98506708944d0c33452f51f25aaadd892f1..b8113a8431ee3702b28c4ed17af194d2bdbb2ba4 100644
(file)
--- 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);