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:
parent
723a3e628e
commit
6305c5b55f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user