X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=examples%2Fcgit.psgi;h=876171b93c3d238634e66dda3f6bb344a1d6ef89;hb=HEAD;hp=e72e832d03be09b9c5aeedbc9620a2e1a40c4681;hpb=9253dc860de52360d3bc60710422783457143e3d;p=public-inbox.git diff --git a/examples/cgit.psgi b/examples/cgit.psgi index e72e832d..876171b9 100644 --- a/examples/cgit.psgi +++ b/examples/cgit.psgi @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2019-2020 all contributors +# Copyright (C) 2019-2021 all contributors # License: GPL-3.0+ # # PublicInbox::Cgit may be used independently of WWW. @@ -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]) }