]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-httpd
httpd: get rid of Deflater warning
[public-inbox.git] / script / public-inbox-httpd
index 43f1818861ed1d10f0032ec3891029e4ff79a2c3..56551eded7e0065fdb5891aef6f3604ad7c719eb 100755 (executable)
@@ -21,8 +21,8 @@ my $refresh = sub {
                }
        } else {
                require PublicInbox::WWW;
-               PublicInbox::WWW->preload;
                my $www = PublicInbox::WWW->new;
+               $www->preload;
                $app = builder {
                        eval {
                                enable 'Deflater',
@@ -32,8 +32,6 @@ my $refresh = sub {
                                                application/atom+xml
                                                )]
                        };
-                       $@ and warn
-"Plack::Middleware::Deflater missing, bandwidth will be wasted\n";
 
                        eval { enable 'ReverseProxy' };
                        $@ and warn