From 2de5a44d184c25b162229690282a237adadbcb55 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Mar 2016 08:10:56 +0000 Subject: repobrowse: standardize interface a bit Make it closer to what the existing WWW interface is since we no longer rely on CGI.pm --- examples/repobrowse.psgi | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples') 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(@_) } } -- cgit v1.2.3-24-ge0c7