fixed PseudoRequest to do param list correctly
This commit is contained in:
parent
bfc140a365
commit
00b2709365
1 changed files with 4 additions and 1 deletions
|
|
@ -231,7 +231,10 @@ all form variables.
|
||||||
sub body {
|
sub body {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $value = shift;
|
my $value = shift;
|
||||||
return keys %{ $self->{body} } unless defined $value;
|
if ( !defined $value ) {
|
||||||
|
return keys %{ $self->{body} } if wantarray;
|
||||||
|
return { %{ $self->{body} } };
|
||||||
|
}
|
||||||
if ($self->{body}->{$value}) {
|
if ($self->{body}->{$value}) {
|
||||||
if (wantarray && ref $self->{body}->{$value} eq "ARRAY") {
|
if (wantarray && ref $self->{body}->{$value} eq "ARRAY") {
|
||||||
return @{$self->{body}->{$value}};
|
return @{$self->{body}->{$value}};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue