Subject: | header method problem |
header method does not receive a -charset argument.
<CODE>
use CGI::Session;
my $session = new CGI::Session(undef, undef, {Directory=>'./tmp'});
print $session->header(-charset=>'shift_jis');
</CODE>
<RESULT>
Set-Cookie: CGISESSID=d64da898dddc28633dc383ee1ab9f5da; path=/
Date: Mon, 04 Aug 2003 06:15:41 GMT
Content-Type: text/html; charset=ISO-8859-1
</RESULT>
<PATCH>
sub header {
my $self = shift;
my $cgi = $self->{_SESSION_OBJ};
unless ( defined $cgi ) {
require CGI;
$self->{_SESSION_OBJ} = CGI->new();
return $self->header(@_); # <- this change
}
my $cookie = $cgi->cookie($self->name(), $self->id() );
return $cgi->header(
-type => 'text/html',
-cookie => $cookie,
@_
);
}
</PATCH>