From e2046ce4ffb6b8232a4ad5e7f51c431798917787 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 24 Sep 2014 16:19:23 +0200 Subject: [PATCH] Treat HTTP 201 response code as success --- core/modules/utils/dom/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/dom/http.js b/core/modules/utils/dom/http.js index f5b9fc048..4708ecb39 100644 --- a/core/modules/utils/dom/http.js +++ b/core/modules/utils/dom/http.js @@ -39,7 +39,7 @@ exports.httpRequest = function(options) { // Set up the state change handler request.onreadystatechange = function() { if(this.readyState === 4) { - if(this.status === 200 || this.status === 204) { + if(this.status === 200 || this.status === 201 || this.status === 204) { // Success! options.callback(null,this.responseText,this); return;