[Dancer-users] case insensitive param keys
Stephane
stephane at shimaore.net
Wed Oct 6 16:51:32 CEST 2010
> From a pragmatic perspective, it would be nice to have the keys forced
> to lowercase
"lowercase" ... in which locale?
IMHO this should be an option, not the default behavior, especially
since this really is done to hide bugs in external applications.
A developer facing the issue (i.e., incorrect HTTP calls to his
application) can always rewrite the params hash using something like (no
optimization):
map { lc($_) => params->{$_} } keys %{params}
My 3 cents,
Stéphane
More information about the Dancer-users
mailing list