user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] examples/public-inbox.psgi: make output chunky by default
@ 2015-12-25 12:06 Eric Wong
  2015-12-25 12:06 ` [PATCH] view: favor whitespace wrap in <head> Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
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	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-26  0:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-25 12:06 [PATCH] examples/public-inbox.psgi: make output chunky by default Eric Wong
2015-12-25 12:06 ` [PATCH] view: favor whitespace wrap in <head> Eric Wong
2015-12-26  0:57   ` [PATCH] searchview: fixup stupid syntax error 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).