Skip to content

Commit

Permalink
[11.x] Provide an error message for PostTooLargeException
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickomeara committed Oct 25, 2024
1 parent 5527e72 commit 6d178b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Middleware/ValidatePostSize.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function handle($request, Closure $next)
$max = $this->getPostMaxSize();

if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
throw new PostTooLargeException('The POST data is too large.');
}

return $next($request);
Expand Down

0 comments on commit 6d178b4

Please sign in to comment.