mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Fix JSONP support for lists
This commit is contained in:
@ -26,7 +26,7 @@ routes.list = function(req, res, next) {
|
||||
}
|
||||
|
||||
for (var key in req.query) {
|
||||
props[key] = utils.toNative(req.query[key])
|
||||
if (key !== 'callback') props[key] = utils.toNative(req.query[key])
|
||||
}
|
||||
|
||||
if (_(props).isEmpty()) {
|
||||
|
Reference in New Issue
Block a user