share/views/public/js/rbbt.basic.js in rbbt-rest-1.7.18 vs share/views/public/js/rbbt.basic.js in rbbt-rest-1.7.19
- old
+ new
@@ -19,12 +19,11 @@
if (undefined === timeout) timeout = 1000
if (timeout > 20000) timeout = 20000
params.extract = function(xhr, xhrOptions){
if (xhr.status != '200') throw(xhr)
- return xhr.responseText
+ return xhr.responseText.length === 0 && xhrOptions.deserialize === JSON.parse ? null : xhr.responseText
}
-
rbbt.ajax(params).then(
function(res){
deferred.resolve(res)
},