From 4ed1ffe3c7eea11b7d3fa2fb008a7827a2f80a01 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 27 Oct 2006 04:09:58 +0000 Subject: [PATCH] Set default mime-type to include character encoding inside Session/Http.pm Fix typo in pod in AddUserToGroup workflow. --- lib/WebGUI/Session/Http.pm | 3 ++- lib/WebGUI/Workflow/Activity/AddUserToGroup.pm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Session/Http.pm b/lib/WebGUI/Session/Http.pm index 49c7deac1..63c7339c7 100644 --- a/lib/WebGUI/Session/Http.pm +++ b/lib/WebGUI/Session/Http.pm @@ -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"; } #------------------------------------------------------------------- diff --git a/lib/WebGUI/Workflow/Activity/AddUserToGroup.pm b/lib/WebGUI/Workflow/Activity/AddUserToGroup.pm index a47c36ce4..db952e59f 100644 --- a/lib/WebGUI/Workflow/Activity/AddUserToGroup.pm +++ b/lib/WebGUI/Workflow/Activity/AddUserToGroup.pm @@ -21,7 +21,7 @@ use WebGUI::International; =head1 NAME -Package WebGUI::Workflow::Activity::RunCommandAsUser +Package WebGUI::Workflow::Activity::AddUserToGroup; =head1 DESCRIPTION