X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox.cgi;h=3a430d5b94b320fa1fc3145e288d145a28ad1468;hb=5f28e29a9cac8d0f61af4212895585ad930bc370;hp=c766483a208cacb4dceec28e8c80795447591ed6;hpb=62f28026e624ed30d620063a0fa92cbedb7f6673;p=public-inbox.git
diff --git a/script/public-inbox.cgi b/script/public-inbox.cgi
index c766483a..3a430d5b 100755
--- a/script/public-inbox.cgi
+++ b/script/public-inbox.cgi
@@ -1,5 +1,5 @@
#!/usr/bin/perl -w
-# Copyright (C) 2014-2020 all contributors
+# Copyright (C) 2014-2021 all contributors
# License: AGPL-3.0+ or later
#
# Enables using PublicInbox::WWW as a CGI script
@@ -13,14 +13,7 @@ BEGIN {
PublicInbox::WWW->preload if $ENV{MOD_PERL};
}
my $www = PublicInbox::WWW->new;
-my $have_deflater = eval { require Plack::Middleware::Deflater; 1 };
my $app = builder {
- if ($have_deflater) {
- enable 'Deflater',
- content_type => [ 'text/html', 'text/plain',
- 'application/atom+xml' ];
- }
-
# Enable to ensure redirects and Atom feed URLs are generated
# properly when running behind a reverse proxy server which
# sets the X-Forwarded-Proto request header.