Fix call to add_output_filter (#1898)

This commit is contained in:
Clément OUDOT 2019-08-27 16:54:01 +02:00
parent 6a462bfed3
commit 22108c9c89

View File

@ -107,7 +107,7 @@ sub run {
eval 'use Apache2::Filter' unless ( $INC{"Apache2/Filter.pm"} );
if ( $INC{"Apache2/Filter.pm"} ) {
$r->add_output_filter(
$r->{env}->{'psgi.r'}->add_output_filter(
sub {
my $f = shift;
while ( $f->read( my $buffer, 1024 ) ) {