Commit 569ed6f5 authored by Tristan Cavelier's avatar Tristan Cavelier

default success status response updated

parent b4ea555e
...@@ -18,7 +18,8 @@ IODeferred.prototype.resolve = function (a, b) { ...@@ -18,7 +18,8 @@ IODeferred.prototype.resolve = function (a, b) {
if (this._method === 'post') { if (this._method === 'post') {
weak.status = constants.http_status.created; weak.status = constants.http_status.created;
weak.statusText = constants.http_status_text.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.status = constants.http_status.no_content;
weak.statusText = constants.http_status_text.no_content; weak.statusText = constants.http_status_text.no_content;
} else { } 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