diff options
author | Jeff Fearn <jfearn@redhat.com> | 2022-08-04 11:41:44 +1000 |
---|---|---|
committer | Jeff Fearn <jfearn@redhat.com> | 2022-08-04 11:41:44 +1000 |
commit | f0dea61c39136bf79332e340ce1fa53baf4a4fb9 (patch) | |
tree | a2cb5cf98bae9c8ba639eb1a2de3f0b1e1786a44 | |
parent | Bug 2114626 - Extend Group.get to provide full information to insiders (diff) | |
download | bugzilla-f0dea61c39136bf79332e340ce1fa53baf4a4fb9.tar.gz bugzilla-f0dea61c39136bf79332e340ce1fa53baf4a4fb9.tar.bz2 bugzilla-f0dea61c39136bf79332e340ce1fa53baf4a4fb9.zip |
Bug 2099910 - Not all errors get displayed to users
Send a fake encoding for errors.
Change-Id: I91a7b1e1b6c89bf0199d5af4ec6f8ec3c9cbe5f1
-rwxr-xr-x | errors/errors.cgi | 7 |
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) { |