From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 1/4] examples/public-inbox.psgi: shorten to simplify
Date: Mon, 4 Jan 2016 01:03:49 +0000 [thread overview]
Message-ID: <20160104010352.26568-2-e@80x24.org> (raw)
In-Reply-To: <20160104010352.26568-1-e@80x24.org>
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 4d34b42..9fa51ba 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);
--
EW
next prev parent reply other threads:[~2016-01-04 1:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-04 1:03 [PATCH 0/4] misc updates to push Eric Wong
2016-01-04 1:03 ` Eric Wong [this message]
2016-01-04 1:03 ` [PATCH 2/4] www: comments for denoting Plack::Request vs CGI Eric Wong
2016-01-04 1:03 ` [PATCH 3/4] misc doc updates Eric Wong
2016-01-04 1:03 ` [PATCH 4/4] view: label "relevance" in threaded search view Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160104010352.26568-2-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).