Skip to content

Commit 076644f

Browse files
authored
Update filehandler.js
express deprecated res.json(status, obj): Use res.status(status).json(obj) instead node_modules/jquery-file-upload-middleware/lib/filehandler.js:19:21
1 parent efe6040 commit 076644f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/filehandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function (middleware, options) {
1616
? 'application/json'
1717
: 'text/plain'
1818
});
19-
res.json(200, result);
19+
res.status(200).json(result);
2020
}
2121
});
2222

0 commit comments

Comments
 (0)