fix jsonp checking.

pull/3321/head
Man Yue Mo 2018-02-07 08:43:07 +00:00
parent 0c9475e366
commit a2992b3624
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ var apiCaller = function(req, res, fields) {
apiLogger.info("RESPONSE, " + req.params.func + ", " + response);
//is this a jsonp call, if yes, add the function call
if(req.query.jsonp && isVarName(response))
if(req.query.jsonp && isVarName(req.query.jsonp))
response = req.query.jsonp + "(" + response + ")";
res._____send(response);