When using queries like /myroute?values[]=1 through the middleware, the backend server receive as query values=1 instead of 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[]=1through the middleware, the backend server receive as queryvalues=1instead ofvalues[]=1Example with backend :
Request in direct :
Request through middleware