zby/WebNano — pull request #2 by losomo (2012-07-31 08:48:31+00:00)
Title: Decoding utf-8 encoded parameters

WebNano encodes the message body to utf8, which is fine. However, the behavior should become symmetric, i.e. decoding request parameters in Plack::Request. The same operation in Tatsumaki framework looks like this: https://metacpan.org/source/MIYAGAWA/Tatsumaki-0.1013/lib/Tatsumaki/Request.pm

Since WebNano doesn't subclass Plack::Request, I am decoding the parameters just after creating the Plack::Request object.

Without this modification, applications would have to decode all parameters all over the place whenever they are used.