about summary refs log tree commit homepage
path: root/public-inbox-httpd
diff options
context:
space:
mode:
Diffstat (limited to 'public-inbox-httpd')
-rw-r--r--public-inbox-httpd7
1 files changed, 2 insertions, 5 deletions
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(@_) };
                         };
                 };
         }