diff --git a/lib/iControl.js b/lib/iControl.js index 335089a..aa96d39 100644 --- a/lib/iControl.js +++ b/lib/iControl.js @@ -56,7 +56,7 @@ iControl.prototype.create = function(path, body, cb) { // Modify iControl.prototype.modify = function(path, body, cb) { - var opts = { path: path, body: body, method: 'PUT' }; + var opts = { path: path, body: body, method: 'PATCH' }; this._request(opts, cb); }; @@ -112,7 +112,7 @@ iControl.prototype._request = function(opts, cb) { return cb(msg, false); } - + // If retrieving via GET, handle pagination if (this.method === 'GET') { @@ -126,7 +126,7 @@ iControl.prototype._request = function(opts, cb) { return cb(false, body); } } - + // For POST/PUT/DELETE, return body else { return cb(false, body);