httpd: When sending gzipped content use content-length header
authorAlexander Vickberg <wickbergster@gmail.com>
Wed, 17 Apr 2019 09:34:21 +0000 (11:34 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 17 Apr 2019 09:34:49 +0000 (11:34 +0200)
commit210b52476c86fb8411f6b0fd12d4e76875c474e5
treee7201bce1460eec7d1c0723ae919f7fea5f18912
parent1d37186fe2361f80c821e334cc61f41e2f4eeb72
httpd: When sending gzipped content use content-length header

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.

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

Signed-off-by: Alexander Vickberg <wickbergster@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c