diff options
author | Eric Wong <e@yhbt.net> | 2020-07-05 23:27:29 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-06 20:01:15 +0000 |
commit | a3f00c4a7851b98b81a2fcb31d5ed131908e22de (patch) | |
tree | 92cfd147157413f7bfa848cc9f1aead244cc498e /script | |
parent | f982abbaa39e07090d3fb641fd9de25434c0d74c (diff) | |
download | public-inbox-a3f00c4a7851b98b81a2fcb31d5ed131908e22de.tar.gz |
Instead of gzipping some (mbox.gz, manifest.js.gz) responses and leaving P::M::D to do the rest, we gzip everything ourselves, now, so P::M::D is redundant.
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-httpd | 9 | ||||
-rwxr-xr-x | script/public-inbox.cgi | 7 |
2 files changed, 0 insertions, 16 deletions
diff --git a/script/public-inbox-httpd b/script/public-inbox-httpd index 09da505e..b8159f3a 100755 --- a/script/public-inbox-httpd +++ b/script/public-inbox-httpd @@ -27,15 +27,6 @@ my $refresh = sub { my $www = PublicInbox::WWW->new; $www->preload; $app = builder { - eval { - enable 'Deflater', - content_type => [ qw( - text/html - text/plain - application/atom+xml - )] - }; - eval { enable 'ReverseProxy' }; $@ and warn "Plack::Middleware::ReverseProxy missing,\n", diff --git a/script/public-inbox.cgi b/script/public-inbox.cgi index c766483a..42ab17c9 100755 --- a/script/public-inbox.cgi +++ b/script/public-inbox.cgi @@ -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. |