diff options
author | Eric Wong <e@80x24.org> | 2016-03-07 08:10:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-05 18:58:27 +0000 |
commit | 2de5a44d184c25b162229690282a237adadbcb55 (patch) | |
tree | 6714e99bf83f1886cba5aa1af6455ce735d6a8f0 /examples | |
parent | 2722ba03b74a782c0f64c7a6b1d09b7b82ff5478 (diff) | |
download | public-inbox-2de5a44d184c25b162229690282a237adadbcb55.tar.gz |
Make it closer to what the existing WWW interface is since we no longer rely on CGI.pm
Diffstat (limited to 'examples')
-rw-r--r-- | examples/repobrowse.psgi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/repobrowse.psgi b/examples/repobrowse.psgi index a642911f..6e7a591b 100644 --- a/examples/repobrowse.psgi +++ b/examples/repobrowse.psgi @@ -6,7 +6,6 @@ use strict; use warnings; use PublicInbox::Repobrowse; -use Plack::Request; use Plack::Builder; my $have_deflater = eval { require Plack::Middleware::Deflater; 1 }; my $repo_browse = PublicInbox::Repobrowse->new; @@ -19,8 +18,5 @@ builder { 'application/atom+xml' ]; } enable 'Head'; - sub { - my $req = Plack::Request->new(@_); - $repo_browse->run($req, $req->method); - } + sub { $repo_browse->call(@_) } } |