Open lionep opened 3 years ago
When using queries like /myroute?values[]=1 through the middleware, the backend server receive as query values=1 instead of values[]=1
/myroute?values[]=1
values=1
values[]=1
Example with backend :
app.get('/*', (req, res) => { res.json({ url: req.url }); });
Request in direct :
curl -g "localhost:8080/sample?values[]=1" # {"url": "/az?toto[]=1"}
Request through middleware
curl -g "localhost:8081/sample?values[]=1" # {"url": "/az?toto=1"}
When using queries like
/myroute?values[]=1
through the middleware, the backend server receive as queryvalues=1
instead ofvalues[]=1
Example with backend :
Request in direct :
Request through middleware