Closes #182 "portal return a 500 error under cgi-script
This commit is contained in:
parent
740030bf2c
commit
f95acaa007
@ -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} );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user