Closes #182 "portal return a 500 error under cgi-script

This commit is contained in:
Xavier Guimard 2010-10-11 11:45:37 +00:00
parent 740030bf2c
commit f95acaa007

View File

@ -738,6 +738,7 @@ sub error_type {
# Overload CGI::header() to add Lemonldap::NG cookie.
sub header {
my $self = shift;
unshift @_, '-type' unless ($#_);
if ( $self->{cookie} ) {
$self->SUPER::header( @_, -cookie => $self->{cookie} );
}