forked from plack/Plack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plack::Request: die on superfluous arguments
I had some code that accidentally did $plack_request->content_type($type) instead of $plack_response->content_type($type), this just silently failed instead of issuing a warning about the unknown argument. I think Plack should die instead when you supply it with parameters that it can't possibly do anything with. This is a partial hack to get that going, this is just a proof of concept patch but a good start. In order to fully execute on this we'd need to go through the whole plack source and start dying on any unknown arguments. This patch is best viewed with the --word-diff argument to git-show.
- Loading branch information
Showing
1 changed file
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters