How to tell Express NOT to parse the query string of the request? How to tell Express NOT to parse the query string of the request? express express

How to tell Express NOT to parse the query string of the request?


You can configure the query parser (have a look to the doc):

app.disable('query parser')

Place it after the express initialization and before the router.

You could also pass an empty function to the query parser just in case you need some kind of fine tuning in the future:

app.set('query parser', function(qs, options) {  // qs is a query string, process it here});