diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-11 12:36:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-11 12:36:10 +0100 |
commit | a3aa3e309506ea96fa8f7546f6b22fa85263a934 (patch) | |
tree | cd6d4adeafec55e230e2d56499df8f0c3cbf47e1 /networking/httpd.c | |
parent | 4662de0511487b4da965c4b2158bae318f3d80a8 (diff) | |
download | busybox-w32-a3aa3e309506ea96fa8f7546f6b22fa85263a934.tar.gz busybox-w32-a3aa3e309506ea96fa8f7546f6b22fa85263a934.tar.bz2 busybox-w32-a3aa3e309506ea96fa8f7546f6b22fa85263a934.zip |
wget: check for close success; fix chunked; do not bother to send QUIT to ftp
Also, random fixes to use %u for unsigned quantities. -14 bytes in wget.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index a2a52b58a..7ac43619a 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1021,7 +1021,7 @@ static void send_headers(int responseNum) | |||
1021 | strftime(tmp_str, sizeof(tmp_str), RFC1123FMT, gmtime(&last_mod)); | 1021 | strftime(tmp_str, sizeof(tmp_str), RFC1123FMT, gmtime(&last_mod)); |
1022 | #if ENABLE_FEATURE_HTTPD_RANGES | 1022 | #if ENABLE_FEATURE_HTTPD_RANGES |
1023 | if (responseNum == HTTP_PARTIAL_CONTENT) { | 1023 | if (responseNum == HTTP_PARTIAL_CONTENT) { |
1024 | len += sprintf(iobuf + len, "Content-Range: bytes %"OFF_FMT"d-%"OFF_FMT"d/%"OFF_FMT"d\r\n", | 1024 | len += sprintf(iobuf + len, "Content-Range: bytes %"OFF_FMT"u-%"OFF_FMT"u/%"OFF_FMT"u\r\n", |
1025 | range_start, | 1025 | range_start, |
1026 | range_end, | 1026 | range_end, |
1027 | file_size); | 1027 | file_size); |
@@ -1032,7 +1032,7 @@ static void send_headers(int responseNum) | |||
1032 | #if ENABLE_FEATURE_HTTPD_RANGES | 1032 | #if ENABLE_FEATURE_HTTPD_RANGES |
1033 | "Accept-Ranges: bytes\r\n" | 1033 | "Accept-Ranges: bytes\r\n" |
1034 | #endif | 1034 | #endif |
1035 | "Last-Modified: %s\r\n%s %"OFF_FMT"d\r\n", | 1035 | "Last-Modified: %s\r\n%s %"OFF_FMT"u\r\n", |
1036 | tmp_str, | 1036 | tmp_str, |
1037 | "Content-length:", | 1037 | "Content-length:", |
1038 | file_size | 1038 | file_size |