httpd: don't send error messages with gzip encoding
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 25 Mar 2011 12:38:52 +0000 (13:38 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 27 Mar 2011 21:26:33 +0000 (23:26 +0200)
commit95755181b828cccaa833d7b8d1d47174b7b360b7
treeb6723774a139aff0dd57c3e83b52a6d7889377ee
parent95f5c52e6f823c710be807fb86c8b2fafec8a334
httpd: don't send error messages with gzip encoding

If CONFIG_FEATURE_HTTPD_GZIP is enabled and request contained
'Accept-Encoding: gzip', then errors were sent with 'Content-Encoding: gzip'
even though they aren't.

Fix it by clearing content_gzip before sending the headers.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c