Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit 5d36c2c

Browse files
Martin Mouterdemicahr
authored andcommitted
Allow to configure QueryParser with all qs options (#39)
qs provides several options to parse query. Now you can benefit of these options by using QueryParser options.
1 parent e3016b5 commit 5d36c2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plugins/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function queryParser(options) {
2828
return next();
2929
}
3030

31-
req.query = qs.parse(req.getQuery());
31+
req.query = qs.parse(req.getQuery(), opts);
3232

3333
if (opts.mapParams === true) {
3434
Object.keys(req.query).forEach(function (k) {

0 commit comments

Comments
 (0)