]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/public-inbox.psgi
unsubscribe.milter: use default postfork dispatcher
[public-inbox.git] / examples / public-inbox.psgi
index f57491228e55fb7f00164c0df4878e8902285ddf..876fc76226d651d60dbe2901f89332fabcfd0f06 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
-# Copyright (C) 2014-2015 all contributors <meta@public-inbox.org>
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2014-2016 all contributors <meta@public-inbox.org>
+# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # Note: this is part of our test suite, update t/plack.t if this changes
 # Usage: plackup [OPTIONS] /path/to/this/file
 # A startup command for development which monitors changes:
@@ -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(