1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Use request.del in cli request module

This commit is contained in:
Nick O'Leary 2014-09-23 16:35:17 +01:00
parent 723a3e628e
commit 6305c5b55f

View File

@ -36,7 +36,7 @@ module.exports = function(path, options) {
} else if (options.method == 'POST') { } else if (options.method == 'POST') {
requestFunc = request.post; requestFunc = request.post;
} else if (options.method == 'DELETE') { } else if (options.method == 'DELETE') {
requestFunc = request.delete; requestFunc = request.del;
} }
requestFunc(options, function(error,response,body) { requestFunc(options, function(error,response,body) {
if (!error && response.statusCode == 200) { if (!error && response.statusCode == 200) {