]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/cgit.psgi
Merge tag 'v1.6.1' into eidx
[public-inbox.git] / examples / cgit.psgi
index e72e832d03be09b9c5aeedbc9620a2e1a40c4681..48e3798b4e1402e4083bc19fd0321381cda9300e 100644 (file)
@@ -14,18 +14,10 @@ use warnings;
 use Plack::Builder;
 use PublicInbox::Cgit;
 use PublicInbox::Config;
-my $pi_config = PublicInbox::Config->new;
-my $cgit = PublicInbox::Cgit->new($pi_config);
+my $pi_cfg = PublicInbox::Config->new;
+my $cgit = PublicInbox::Cgit->new($pi_cfg);
 
 builder {
-       eval {
-               enable 'Deflater',
-                       content_type => [ qw(
-                               text/html
-                               text/plain
-                               application/atom+xml
-                               )]
-       };
        eval { enable 'ReverseProxy' };
        enable 'Head';
        sub { $cgit->call($_[0]) }