diff options
author | Eric Wong <e@80x24.org> | 2016-01-03 23:48:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-01-03 23:48:16 +0000 |
commit | 48dbde1b098d836660d3eefbacbd57e487b3eaed (patch) | |
tree | 94f4cfd0522affcf352c93fb4b342b69666a7b44 /examples | |
parent | 09cfec7747cb4e44841e688b4b3f90442f8431f8 (diff) | |
download | public-inbox-48dbde1b098d836660d3eefbacbd57e487b3eaed.tar.gz |
Enable deflater using a shorter string as we do with other middlewares, and use single quotes to denote we do not need interpolation.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/public-inbox.psgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi index 4d34b426..9fa51ba6 100644 --- a/examples/public-inbox.psgi +++ b/examples/public-inbox.psgi @@ -12,13 +12,13 @@ use Plack::Builder; my $have_deflater = eval { require Plack::Middleware::Deflater; 1 }; builder { - enable 'Plack::Middleware::Chunked'; + enable 'Chunked'; if ($have_deflater) { - enable "Deflater", + enable 'Deflater', content_type => [ 'text/html', 'text/plain', 'application/atom+xml' ]; } - enable "Head"; + enable 'Head'; sub { my $req = Plack::Request->new(@_); PublicInbox::WWW::run($req, $req->method); |