-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Passing the context to evalHandler (contrary to its signature) makes the request parameter unreachable in the evaluated code.
mockserver/handlers/evalHandler.js
Line 1 in 39b3e8d
| module.exports = function evalHandler(value, request) { |
Line 84 in 39b3e8d
| .map((value) => evalHandler(value, context, request)) |
Line 110 in 39b3e8d
| .map((value) => evalHandler(value, context, request)) |
So the following doesn't work, since request has here the value of context instead:
#eval request.body;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels