* [PATCH] examples/public-inbox.psgi: make output chunky by default
@ 2015-12-25 12:06 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-12-25 12:06 UTC (permalink / raw)
To: meta
HTTP/1.1 clients will want persistent connections and
need to know response terminations.
---
examples/public-inbox.psgi | 1 +
t/plack.t | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index b0b9ae9..4d34b42 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -12,6 +12,7 @@ use Plack::Builder;
my $have_deflater = eval { require Plack::Middleware::Deflater; 1 };
builder {
+ enable 'Plack::Middleware::Chunked';
if ($have_deflater) {
enable "Deflater",
content_type => [ 'text/html', 'text/plain',
diff --git a/t/plack.t b/t/plack.t
index 560080f..31ec58d 100644
--- a/t/plack.t
+++ b/t/plack.t
@@ -116,7 +116,7 @@ EOF
my ($cb) = @_;
my $res = $cb->(GET($pfx . '/blah%40example.com/raw'));
is(200, $res->code, 'success response received for /*/raw');
- like($res->content, qr!\AFrom !, "mbox returned");
+ like($res->content, qr!^From !sm, "mbox returned");
});
# legacy redirects
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-12-25 12:06 7% [PATCH] examples/public-inbox.psgi: make output chunky by default 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).