aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-24 14:53:18 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-24 14:53:18 +0000
commitcf30cc82a343802b601f01ae153916887f11eb7b (patch)
treedd5af380364efe67c7bd302d6c1c6d70f303f959 /networking/httpd.c
parent376ce1e775a97a01f1c454497fbe34d326043328 (diff)
downloadbusybox-w32-cf30cc82a343802b601f01ae153916887f11eb7b.tar.gz
busybox-w32-cf30cc82a343802b601f01ae153916887f11eb7b.tar.bz2
busybox-w32-cf30cc82a343802b601f01ae153916887f11eb7b.zip
header_verbose_list: stop truncating file size in listing
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 97b04fb03..0de60ba06 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -889,8 +889,8 @@ static int sendHeaders(HttpResponseNum responseNum)
889 889
890 if (config->ContentLength != -1) { /* file */ 890 if (config->ContentLength != -1) { /* file */
891 strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); 891 strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod));
892 len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"\r\n", 892 len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"d\r\n",
893 timeStr, "Content-length:", (off_t) config->ContentLength); 893 timeStr, "Content-length:", config->ContentLength);
894 } 894 }
895 strcat(buf, "\r\n"); 895 strcat(buf, "\r\n");
896 len += 2; 896 len += 2;