]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/public-inbox.psgi
examples/public-inbox.psgi: add note for our httpd
[public-inbox.git] / examples / public-inbox.psgi
index dcca3b09a3e1e30b324c32dfb1f5edb876b71184..876fc76226d651d60dbe2901f89332fabcfd0f06 100644 (file)
@@ -9,11 +9,14 @@ use strict;
 use warnings;
 use PublicInbox::WWW;
 PublicInbox::WWW->preload;
-use Plack::Request;
 use Plack::Builder;
 my $www = PublicInbox::WWW->new;
 builder {
-       enable 'Chunked';
+       # Chunked middleware conflicts with Starman:
+       # https://github.com/miyagawa/Starman/issues/23
+       # However, it is strongly recommended to enable it if using
+       # public-inbox-httpd to allow persistent connections
+       # enable 'Chunked';
        eval {
                enable 'Deflater',
                        content_type => [ qw(