Skip to content

Commit

Permalink
Fixed handling $self->r->param(foo => \@bar)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritloose committed Nov 19, 2010
1 parent e225880 commit 0d8e304
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Sledge/Request/PSGI.pm
Expand Up @@ -70,6 +70,10 @@ sub args {

sub param {
my $self = shift;
# $r->param(foo => \@bar);
if (@_ == 2 && ref($_[1]) eq 'ARRAY') {
return $self->query->param($_[0], @{$_[1]});
}
$self->query->param(@_);
}

Expand Down

0 comments on commit 0d8e304

Please sign in to comment.