Skip to content
Permalink
Browse files

Fix WebGUI::Session::Plack's param statement to be compatible with Ap…

…ache2::Request's.
  • Loading branch information...
martink committed Aug 24, 2012
1 parent 0d55ec0 commit 1adfb3f11ae6159aaa99ae9886c10090899243dc
Showing with 10 additions and 2 deletions.
  1. +10 −2 lib/WebGUI/Session/Plack.pm
@@ -40,8 +40,16 @@ sub AUTOLOAD {

# Emulate/delegate/fake Apache2::* subs
sub uri { shift->{request}->path_info }
sub param { shift->{request}->param(@_) }
sub params { shift->{request}->prameters->mixed(@_) }
sub param {
my $self = shift;
if (@_) {
return $self->{request}->param(@_);
}
else {
return $self->params;
}
}
sub params { shift->{request}->parameters->mixed(@_) }
sub headers_in { shift->{request}->headers(@_) }
sub headers_out { shift->{headers_out} }
sub protocol { shift->{request}->protocol(@_) }

0 comments on commit 1adfb3f

Please sign in to comment.
You can’t perform that action at this time.