X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=public-inbox-httpd;h=3635c9a75e804af9b190eda13fed7cd7dab6aeb7;hp=6436bd7df1011cbfbff3e26bb6197d59d54852d7;hb=65ff86f333a1f8276943248efef7fa2a64afe9e3;hpb=8968889e3ebfa09dd2c80fe8b917b83ac13ff356 diff --git a/public-inbox-httpd b/public-inbox-httpd index 6436bd7d..3635c9a7 100644 --- a/public-inbox-httpd +++ b/public-inbox-httpd @@ -24,6 +24,7 @@ my $refresh = sub { "$0 runs in /, command-line paths must be absolute\n"; } } else { + my $www = PublicInbox::WWW->new; $app = eval { my $deflate_types = eval { require Plack::Middleware::Deflater; @@ -37,11 +38,7 @@ my $refresh = sub { content_type => $deflate_types } enable 'Head'; - sub { - my $req = Plack::Request->new(@_); - PublicInbox::WWW::run($req, - $req->method); - }; + sub { $www->call(@_) }; }; }; }