Skip to content

Commit

Permalink
note that the message body needs to be loaded into memory for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 17, 2013
1 parent 6c3f774 commit f797b74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -920,7 +920,9 @@ to inherit query parameters from the current request.
my $validation = $c->validation;
Get L<Mojolicious::Validator::Validation> object for current request to
validate GET/POST parameters.
validate GET/POST parameters. Parts of the request body need to be loaded into
memory to parse POST parameters, so you have to make sure it is not
excessively large.
my $validation = $c->validation;
$validation->required('title')->size(3, 50);
Expand Down

0 comments on commit f797b74

Please sign in to comment.