From 48dbde1b098d836660d3eefbacbd57e487b3eaed Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 3 Jan 2016 23:48:16 +0000 Subject: [PATCH] examples/public-inbox.psgi: shorten to simplify Enable deflater using a shorter string as we do with other middlewares, and use single quotes to denote we do not need interpolation. --- examples/public-inbox.psgi | 6 +++--- 1 file 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); -- 2.44.0