diff --git a/src/jio/commands/postCommand.js b/src/jio/commands/postCommand.js index fd13a250957f70e062b07c986105294b122bcc76..aecad65e865de6f390472357ed996a164a4aebde 100644 --- a/src/jio/commands/postCommand.js +++ b/src/jio/commands/postCommand.js @@ -10,22 +10,6 @@ var postCommand = function(spec, my) { return 'post'; }; - /** - * Validates the storage handler. - * @param {object} handler The storage handler - */ - that.validate = function () { - if (typeof that.getDocInfo('content') !== 'string') { - that.error({ - status:21,statusText:'Content Required', - error:'content_required', - message:'No data to put.',reason:'no data to put' - }); - return false; - } - return that.validateState(); - }; - that.executeOn = function(storage) { storage.post (that); }; diff --git a/src/jio/commands/putCommand.js b/src/jio/commands/putCommand.js index 5eff93defb8f47281d9e5da709e476d55c075747..cae23e00ac27098c6b8a5843b0f5f536710a153c 100644 --- a/src/jio/commands/putCommand.js +++ b/src/jio/commands/putCommand.js @@ -15,14 +15,6 @@ var putCommand = function(spec, my) { * @param {object} handler The storage handler */ that.validate = function () { - if (typeof that.getDocInfo('content') !== 'string') { - that.error({ - status:21,statusText:'Content Required', - error:'content_required', - message:'No data to put.',reason:'no data to put' - }); - return false; - } return that.validateState(); };