Enable deflater using a shorter string as we do with other
middlewares, and use single quotes to denote we do not need
interpolation.
my $have_deflater = eval { require Plack::Middleware::Deflater; 1 };
builder {
my $have_deflater = eval { require Plack::Middleware::Deflater; 1 };
builder {
- enable 'Plack::Middleware::Chunked';
content_type => [ 'text/html', 'text/plain',
'application/atom+xml' ];
}
content_type => [ 'text/html', 'text/plain',
'application/atom+xml' ];
}
sub {
my $req = Plack::Request->new(@_);
PublicInbox::WWW::run($req, $req->method);
sub {
my $req = Plack::Request->new(@_);
PublicInbox::WWW::run($req, $req->method);