Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #103 from ctfliblime/PT16371557-4_08

Pt16371557 4 08
  • Loading branch information...
commit 63c9ed8bda918cf9c5fa284ec3a8344bcdc9daee 2 parents b6f75d6 + ef56341
Clay Fouts ctfliblime authored

Showing 3 changed files with 4 additions and 17 deletions. Show diff stats Hide diff stats

  1. +0 16 Koha/Plack/ScrubStatus.pm
  2. +2 0  Makefile.PL
  3. +2 1  app.psgi
16 Koha/Plack/ScrubStatus.pm
... ... @@ -1,16 +0,0 @@
1   -package Koha::Plack::ScrubStatus;
2   -use parent qw(Plack::Middleware);
3   -
4   -use Koha;
5   -use Plack::Util;
6   -
7   -sub call {
8   - my ($self, $env) = @_;
9   -
10   - my $res = $self->app->($env);
11   - Plack::Util::header_remove($res->[1], 'Status');
12   -
13   - return $res;
14   -}
15   -
16   -1;
2  Makefile.PL
@@ -605,6 +605,8 @@ WriteMakefile(
605 605 'PDF::Reuse::Barcode' => 0.05,
606 606 'Plack' => 0.9978,
607 607 'Plack::Middleware::Deflater' => 0.03,
  608 + 'Plack::Middleware::Header' => 0.04,
  609 + 'Plack::Middleware::Status' => 1.101150,
608 610 'POE' => 0.9999,
609 611 'POSIX' => 1.09,
610 612 'Rose::DB' => 0.762,
3  app.psgi
@@ -9,11 +9,12 @@ my $app = Plack::App::CGIBin->new(root => $ENV{PERL5LIB})->to_app;
9 9
10 10 builder {
11 11 enable 'Deflater';
  12 + enable 'Status', path => qr{/C4/|/Koha/|/misc/|/t/|/xt/|/etc/}, status => 404;
12 13 enable 'Static', path => qr{^/opac-tmpl/}, root => 'koha-tmpl/';
13 14 enable 'Static', path => qr{^/intranet-tmpl/}, root => 'koha-tmpl/';
  15 + enable 'Header', unset => ['Status'];
14 16 enable '+Koha::Plack::Localize';
15 17 enable '+Koha::Plack::Rewrite';
16   - enable '+Koha::Plack::ScrubStatus';
17 18
18 19 mount '/' => $app;
19 20 };

0 comments on commit 63c9ed8

Please sign in to comment.
Something went wrong with that request. Please try again.