Commit 22aca04f authored by Tristan Cavelier's avatar Tristan Cavelier

default success status response updated

parent db331500
......@@ -18,7 +18,8 @@ IODeferred.prototype.resolve = function (a, b) {
if (this._method === 'post') {
weak.status = constants.http_status.created;
weak.statusText = constants.http_status_text.created;
} else if (this._method === 'remove' || this._method === 'removeAttachment') {
} else if (methodType(this._method) === "writer" ||
this._method === "check") {
weak.status = constants.http_status.no_content;
weak.statusText = constants.http_status_text.no_content;
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment