body-parser
body-parser copied to clipboard
Problem with array parsing
Hi,
When I post <input name="order[1]" value="0"> it gets parsed as { order: [ '0' ] } instead of { order: ['', '0'] }, when there is no input named order[0].
Have been trying to track it down, but I'm not sure if this issue is related to body-parser or raw-body package.
Any thoughts on this?
It would be from the Qs module, which does the parsing for urlencoded bodies.
https://github.com/hapijs/qs
I see. Just found #40 which is the same as I'm facing. Sorry for the duplicate.