From 3b78c0c3edf237b2f163eb6842f2850d7a444d87 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 29 Dec 2016 16:09:28 -0500 Subject: [PATCH] datatype text when no body response --- src/services/apiService.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/apiService.js b/src/services/apiService.js index 78dce38667..a95d05a017 100644 --- a/src/services/apiService.js +++ b/src/services/apiService.js @@ -68,6 +68,7 @@ function initApiService() { $.ajax({ type: 'POST', url: self.baseUrl + '/accounts/password-hint', + dataType: 'text', data: JSON.stringify(request), contentType: 'application/json; charset=utf-8', success: function (response) { @@ -85,6 +86,7 @@ function initApiService() { type: 'POST', url: self.baseUrl + '/accounts/register', data: JSON.stringify(request), + dataType: 'text', contentType: 'application/json; charset=utf-8', success: function (response) { success(); @@ -256,6 +258,7 @@ function initApiService() { $.ajax({ type: 'POST', url: self.baseUrl + '/ciphers/' + id + '/delete?access_token=' + token, + dataType: 'text', success: function (response) { success(); },