diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2011-03-25 13:38:52 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-27 23:26:33 +0200 |
commit | 95755181b828cccaa833d7b8d1d47174b7b360b7 (patch) | |
tree | b6723774a139aff0dd57c3e83b52a6d7889377ee | |
parent | 95f5c52e6f823c710be807fb86c8b2fafec8a334 (diff) | |
download | busybox-w32-95755181b828cccaa833d7b8d1d47174b7b360b7.tar.gz busybox-w32-95755181b828cccaa833d7b8d1d47174b7b360b7.tar.bz2 busybox-w32-95755181b828cccaa833d7b8d1d47174b7b360b7.zip |
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>
-rw-r--r-- | networking/httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index b8113a843..9c1aa2a6f 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1065,6 +1065,7 @@ static void send_headers(int responseNum) | |||
1065 | static void send_headers_and_exit(int responseNum) NORETURN; | 1065 | static void send_headers_and_exit(int responseNum) NORETURN; |
1066 | static void send_headers_and_exit(int responseNum) | 1066 | static void send_headers_and_exit(int responseNum) |
1067 | { | 1067 | { |
1068 | IF_FEATURE_HTTPD_GZIP(content_gzip = 0;) | ||
1068 | send_headers(responseNum); | 1069 | send_headers(responseNum); |
1069 | log_and_exit(); | 1070 | log_and_exit(); |
1070 | } | 1071 | } |