Form url encoded params should work as in PHP and RoR
fxgallego opened this issue · 0 comments
fxgallego commented
Actually form url encoded params are interpreted as arrays when a param name is duplicated. For example 'foo=bar&foo=barz'
is parsed as 'foo' -> ['bar', 'baz']
.
In PHP and Rails in order to pass an array in params the parameters should be written as 'foo[]=bar&foo[]=barz'
. If the param name doesn't includes []
at end then duplicated params overwrites previous values in order of appearance.