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 /examples | |
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 'examples')
-rw-r--r-- | examples/cgit.psgi | 8 | ||||
-rw-r--r-- | examples/newswww.psgi | 8 | ||||
-rw-r--r-- | examples/public-inbox.psgi | 9 | ||||
-rw-r--r-- | examples/unsubscribe.psgi | 1 |
4 files changed, 0 insertions, 26 deletions
diff --git a/examples/cgit.psgi b/examples/cgit.psgi index e72e832d..7ad38e28 100644 --- a/examples/cgit.psgi +++ b/examples/cgit.psgi @@ -18,14 +18,6 @@ my $pi_config = PublicInbox::Config->new; my $cgit = PublicInbox::Cgit->new($pi_config); builder { - eval { - enable 'Deflater', - content_type => [ qw( - text/html - text/plain - application/atom+xml - )] - }; eval { enable 'ReverseProxy' }; enable 'Head'; sub { $cgit->call($_[0]) } diff --git a/examples/newswww.psgi b/examples/newswww.psgi index 3cce7191..52ad7043 100644 --- a/examples/newswww.psgi +++ b/examples/newswww.psgi @@ -36,14 +36,6 @@ builder { # regular PublicInbox::WWW code: # see comments in examples/public-inbox.psgi for more info: mount '/' => builder { - eval { - enable 'Deflater', - content_type => [ qw( - text/html - text/plain - application/atom+xml - )] - }; eval { enable 'ReverseProxy' }; enable 'Head'; sub { $www->call($_[0]) } diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi index 9891a1f0..3537be2c 100644 --- a/examples/public-inbox.psgi +++ b/examples/public-inbox.psgi @@ -22,15 +22,6 @@ my $src = $ENV{SRC_GIT_DIR}; # '/path/to/public-inbox.git' $src = PublicInbox::Git->new($src) if defined $src; builder { - eval { - enable 'Deflater', - content_type => [ qw( - 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. diff --git a/examples/unsubscribe.psgi b/examples/unsubscribe.psgi index 6a40f251..7b97e253 100644 --- a/examples/unsubscribe.psgi +++ b/examples/unsubscribe.psgi @@ -61,7 +61,6 @@ my $app = PublicInbox::Unsubscribe->new( builder { mount '/u' => builder { - eval { enable 'Deflater' }; # optional eval { enable 'ReverseProxy' }; # optional enable 'Head'; sub { $app->call(@_) }; |