X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FBase.pm;h=bc8e9cec1b176e81c63a37cb903cbf880fdd6206;hb=6af4c58414046030f387c7f8cb8aa06776d64607;hp=3a58c188af55920d61d198f64206aab68d04201b;hpb=191f4979def520b8be01554eb954c80ee42df38b;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index 3a58c18..bc8e9ce 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -29,6 +29,8 @@ sub import { local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1; $_[0]->{'psgix.logger'}->({qw/level debug message/ => $_[1]}) }; + *{"${caller}::reply"} = sub { [200, ['Content-Type' => 'text/plain'], [ @_ ] ] } + } ##################################################