Permalink
Browse files

Merge pull request #1254 from PerlDancer/body_parameters_doc_fix

One should use get_all() to get multiple values.
  • Loading branch information...
2 parents 2fc1b8d + 9d93312 commit 4ebe5250b63c643c1c04e4f62d036395875ff7bd @bigpresh bigpresh committed on GitHub Sep 27, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Dancer2/Manual.pod
View
2 lib/Dancer2/Manual.pod
@@ -2599,7 +2599,7 @@ Returns a L<Hash::MultiValue> object from the body parameters.
post '/' => sub {
my $last_name = body_parameters->get('name');
- my @all_names = body_parameters->get('name');
+ my @all_names = body_parameters->get_all('name');
};
=head2 pass

0 comments on commit 4ebe525

Please sign in to comment.