]> Sergey Matveev's repositories - public-inbox.git/commitdiff
examples: disable Chunked response in PSGI example
authorEric Wong <e@80x24.org>
Sat, 12 Mar 2016 03:14:26 +0000 (03:14 +0000)
committerEric Wong <e@80x24.org>
Sat, 12 Mar 2016 03:21:31 +0000 (03:21 +0000)
It seems incompatible with Starman and probably confuses other
HTTP/1.0-only servers, too.  Our -httpd will respect it and
requires it for persistent connections.

examples/public-inbox.psgi

index 55c113e425ae0010e77c392f04a733c3d9485f20..71592a7a2d547a9bfb6ad51b542b4ea15828bdcb 100644 (file)
@@ -12,7 +12,9 @@ PublicInbox::WWW->preload;
 use Plack::Builder;
 my $www = PublicInbox::WWW->new;
 builder {
-       enable 'Chunked';
+       # Chunked middleware conflicts with Starman:
+       # https://github.com/miyagawa/Starman/issues/23
+       # enable 'Chunked';
        eval {
                enable 'Deflater',
                        content_type => [ qw(