Hi, Today for gzipped content httpd is using a header with name Transfer-Length. However I can't find a header with that name in the standards. Instead use Content-Length.
Signed-off-by: Alexander Vickberg <[email protected]> function old new delta .rodata 157940 157936 -4 send_headers 980 939 -41 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-45) Total: -45 bytes text data bss dec hex filename 1020392 17219 1888 1039499 fdc8b busybox_old 1020347 17219 1888 1039454 fdc5e busybox_unstripped
diff --git a/networking/httpd.c b/networking/httpd.c index 2b0acd7dc..02620e180 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1155,9 +1155,8 @@ static void send_headers(unsigned responseNum) "Accept-Ranges: bytes\r\n" #endif "Last-Modified: %s\r\n" - "%s-Length: %"OFF_FMT"u\r\n", + "Content-Length: %"OFF_FMT"u\r\n", date_str, - content_gzip ? "Transfer" : "Content", file_size ); }
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
