]> Sergey Matveev's repositories - public-inbox.git/commitdiff
httpd: get rid of Deflater warning
authorEric Wong <e@80x24.org>
Sun, 5 May 2019 20:42:20 +0000 (20:42 +0000)
committerEric Wong <e@80x24.org>
Tue, 14 May 2019 03:13:53 +0000 (03:13 +0000)
Deflating responses may be done by the reverse proxy (e.g. varnish
or nginx), so the warning for it could be invalid.

examples/public-inbox.psgi
script/public-inbox-httpd

index 8886d7fa881b8d18f076a6981309b41913c9cd4b..0b8500d54cc167e5048f58ea3fd2759a6901fe15 100644 (file)
@@ -25,8 +25,6 @@ builder {
                                application/atom+xml
                                )]
        };
-       $@ and warn
-"Plack::Middleware::Deflater missing, bandwidth will be wasted\n";
 
        # Enable to ensure redirects and Atom feed URLs are generated
        # properly when running behind a reverse proxy server which
index 47e38eca2ea0bfd6b313f375f49b730041bc9754..56551eded7e0065fdb5891aef6f3604ad7c719eb 100755 (executable)
@@ -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