Set default mime-type to include character encoding inside Session/Http.pm

Fix typo in pod in AddUserToGroup workflow.
This commit is contained in:
Colin Kuskie 2006-10-27 04:09:58 +00:00
parent a25d621343
commit 4ed1ffe3c7
2 changed files with 3 additions and 2 deletions

View file

@ -37,6 +37,7 @@ This package allows the manipulation of HTTP protocol information.
$mimetype = $http->getMimeType();
$code = $http->getStatus();
($code, $description) = $http->getStatus();
$description = $http->getStatusDescription();
$boolean = $http->isRedirect();
$http->setCookie($name,$value);
@ -99,7 +100,7 @@ Returns the current mime type of the document to be returned.
sub getMimeType {
my $self = shift;
return $self->{_http}{mimetype} || "text/html";
return $self->{_http}{mimetype} || "text/html; charset=UTF-8";
}
#-------------------------------------------------------------------