]> Sergey Matveev's repositories - public-inbox.git/commitdiff
fixup Plack-related requires
authorEric Wong <e@80x24.org>
Mon, 29 Feb 2016 10:58:39 +0000 (10:58 +0000)
committerEric Wong <e@80x24.org>
Mon, 29 Feb 2016 10:58:39 +0000 (10:58 +0000)
We do not need to load Plack::Request outside of WWW anymore.

examples/public-inbox.psgi
lib/PublicInbox/WWW.pm
script/public-inbox.cgi
t/httpd-corner.psgi

index dcca3b09a3e1e30b324c32dfb1f5edb876b71184..55c113e425ae0010e77c392f04a733c3d9485f20 100644 (file)
@@ -9,7 +9,6 @@ use strict;
 use warnings;
 use PublicInbox::WWW;
 PublicInbox::WWW->preload;
-use Plack::Request;
 use Plack::Builder;
 my $www = PublicInbox::WWW->new;
 builder {
index 98e33fd362fa7f277a544cb60d59ff5a5fe31adb..2acb4c83b0175ad1d2f7550bda4058673a600366 100644 (file)
@@ -13,6 +13,7 @@ package PublicInbox::WWW;
 use 5.008;
 use strict;
 use warnings;
+use Plack::Request;
 use PublicInbox::Config qw(try_cat);
 use URI::Escape qw(uri_escape_utf8 uri_unescape);
 use constant SSOMA_URL => '//ssoma.public-inbox.org/';
index ee9510c1f012757163076cf8b991af64f78ac6d8..5b2aefe2311b1ab5e5e21e49bb60ade4a41fc5d6 100755 (executable)
@@ -5,9 +5,7 @@
 # Enables using PublicInbox::WWW as a CGI script
 use strict;
 use warnings;
-use Plack::Loader;
 use Plack::Builder;
-use Plack::Request;
 use Plack::Handler::CGI;
 use PublicInbox::WWW;
 BEGIN { PublicInbox::WWW->preload if $ENV{MOD_PERL} }
index 0e0e21a84cd585cf187793c8f85f85b78f574d10..c3bf5231e209c9bc98edea0316183eefc9f58886 100644 (file)
@@ -4,7 +4,6 @@
 # Usage: plackup [OPTIONS] /path/to/this/file
 use strict;
 use warnings;
-use Plack::Request;
 use Plack::Builder;
 require Digest::SHA;
 my $app = sub {