[PATCH] httpd: When sending gzipped content use content-length header

Alexander Vickberg wickbergster at gmail.com
Wed Apr 17 07:56:28 UTC 2019


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 <wickbergster at gmail.com>

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: length.diff
Type: text/x-patch
Size: 430 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190417/4dc66d46/attachment.bin>


More information about the busybox mailing list