Hi Octavian,
Octavian Rasnita [EMAIL PROTECTED] wrote:
I have made a program using CGI::Application,
CGI::Application::Plugin::Authentication and
CGI::Application::Plugin::DBH [...]
if I use header_props() in cgiapp_postrun, nothing is printed ...
That method is just:
sub cgiapp_postrun {
my
Octavian Rasnita wrote:
Hi,
All works fine, with the single big problem (until now) that if I use
header_props() in cgiapp_postrun, nothing is printed on the page and the
program returns the HTTP header Content-Length: 0.
That method is just:
sub cgiapp_postrun {
my $self = shift;
On Sat, 2 Sep 2006, Octavian Rasnita wrote:
sub cgiapp_postrun {
my $self = shift;
$self-header_props(-charset = 'ISO-8859-2');
}
Try using header_add() instead of header_props(). From the docs:
Unlike calling header_props(), header_add() will preserve any
existing headers.
-sam
From: Sam Tregar [EMAIL PROTECTED]
sub cgiapp_postrun {
my $self = shift;
$self-header_props(-charset = 'ISO-8859-2');
}
Try using header_add() instead of header_props(). From the docs:
Unlike calling header_props(), header_add() will preserve any
existing headers.
It was