Subject: | enabling end action suppresses output |
I'm trying to convince
Catalyst::Controller::REST
and prototype 1.6.0
to work together.
Just wanting to see the content of the response header I fiddled a
little with the end action.
like this
sub end :Private {
my ($self, $c) = @_;
$c->log->debug('in end before');
$self->NEXT::end($c);
$c->log->debug('in end after');
$c->log->debug('cont type' .$c->response->headers->content_type);
$c->log->debug('cont type' .$c->response->output);
}
The problem is that it breaks everything and no output comes.
If I just keep the method like
sub end :Private {
my ($self, $c) = @_;
$self->NEXT::end($c);
}
It does not help. I don't think I do something bad (correct me pls if I do)
I use
X-Catalyst: 5.7006
attached perl -V
Subject: | perl_config |
Message body not shown because it is not plain text.