about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--public-inbox-httpd6
1 files changed, 2 insertions, 4 deletions
diff --git a/public-inbox-httpd b/public-inbox-httpd
index 772333e8..b871e3de 100644
--- a/public-inbox-httpd
+++ b/public-inbox-httpd
@@ -8,13 +8,9 @@ use warnings;
 use Plack::Util;
 use PublicInbox::Daemon;
 use PublicInbox::HTTP;
-use PublicInbox::WWW;
 use Plack::Request;
 use Plack::Builder;
-PublicInbox::WWW->preload;
-my $have_deflater = eval { require Plack::Middleware::Deflater; 1 };
 my %httpds;
-my $config;
 my $app;
 my $refresh = sub {
         if (@ARGV) {
@@ -24,6 +20,8 @@ my $refresh = sub {
 "$0 runs in /, command-line paths must be absolute\n";
                 }
         } else {
+                require PublicInbox::WWW;
+                PublicInbox::WWW->preload;
                 my $www = PublicInbox::WWW->new;
                 $app = eval {
                         my $deflate_types = eval {