mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Don't mark no content as error on status code 204
This commit is contained in:
parent
13aab94158
commit
5578d02e4a
@ -11,10 +11,13 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
this.getAllResponseHeaders = jqXHR.getAllResponseHeaders;
|
this.getAllResponseHeaders = jqXHR.getAllResponseHeaders;
|
||||||
this.getResponseHeader = jqXHR.getResponseHeader;
|
this.getResponseHeader = jqXHR.getResponseHeader;
|
||||||
this.statusCode = jqXHR.status;
|
this.statusCode = jqXHR.status;
|
||||||
|
// 204 == No content
|
||||||
if(!response) {
|
if(!response) {
|
||||||
console.log('jqXHR', jqXHR);
|
if(this.statusCode !== 204) {
|
||||||
this.error = true;
|
console.log('jqXHR', jqXHR);
|
||||||
this.message = jqXHR.statusText;
|
this.error = true;
|
||||||
|
this.message = jqXHR.statusText;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if(response.status === 'error') {
|
if(response.status === 'error') {
|
||||||
this.error = true;
|
this.error = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user