summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xerrors/errors.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/errors/errors.cgi b/errors/errors.cgi
index 4242c9071..2811c1b63 100755
--- a/errors/errors.cgi
+++ b/errors/errors.cgi
@@ -13,8 +13,6 @@ use Bugzilla::Util qw(html_quote);
#local $Data::Dumper::Indent = 1;
#local $Data::Dumper::Sortkeys = 1;
-#local$ENV{'no-gzip'} = 1;
-
our %errors = (
400 => {
@@ -76,6 +74,11 @@ sub _print_error {
}
say "content-type: " . $content_type;
+ ## BUGBUG we should unset this, but RemoveOutputFilter in .htaccess did not
+ ## remove it. This is the only thing that worked ...
+ if ($ENV{'REDIRECT_HTTP_ACCEPT_ENCODING'} =~ /zip/) {
+ say "Content-Encoding: fake";
+ }
my $template = $msg;
if ($html) {