A / superagent-mocker

Pretty simple in-browser mocks for CRUD and REST API
132 stars 32 forks source link

Query with array parameters aren't captured correctly #53

Closed davidhouweling closed 2 weeks ago

davidhouweling commented 7 years ago

Based on http://visionmedia.github.io/superagent/#get-requests I'm providing it a string so i can use the format of string[]=one&string[]=two&string[]=three, but when i check req.query, it only shows it as req.query.string[]: three.

Would it be possible to perhaps just be able to get the whole query as a string, to save you having to cater for all the possible variations? Even superagent doesn't support all the variations, thats why they have the 'supply as a string' option.