* [PATCH 1/4] examples/public-inbox.psgi: shorten to simplify
2016-01-04 1:03 5% [PATCH 0/4] misc updates to push Eric Wong
@ 2016-01-04 1:03 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-01-04 1:03 UTC (permalink / raw)
To: meta
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
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] misc updates to push
@ 2016-01-04 1:03 5% Eric Wong
2016-01-04 1:03 7% ` [PATCH 1/4] examples/public-inbox.psgi: shorten to simplify Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-01-04 1:03 UTC (permalink / raw)
To: meta
4 changes:
examples/public-inbox.psgi: shorten to simplify
www: comments for denoting Plack::Request vs CGI
misc doc updates
view: label "relevance" in threaded search view
HACKING | 5 ++++-
README | 3 ++-
TODO | 12 ++++++++++++
examples/public-inbox.psgi | 6 +++---
lib/PublicInbox/ExtMsg.pm | 2 +-
lib/PublicInbox/Feed.pm | 2 +-
lib/PublicInbox/SearchView.pm | 2 ++
lib/PublicInbox/View.pm | 4 ++--
lib/PublicInbox/WWW.pm | 3 ++-
9 files changed, 29 insertions(+), 10 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-01-04 1:03 5% [PATCH 0/4] misc updates to push Eric Wong
2016-01-04 1:03 7% ` [PATCH 1/4] examples/public-inbox.psgi: shorten to simplify Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).