diff --git a/src/client/net/xhr.js b/src/client/net/xhr.js index 1e363fd6..7a3ce4ce 100644 --- a/src/client/net/xhr.js +++ b/src/client/net/xhr.js @@ -12,6 +12,7 @@ goog.provide('spf.net.xhr'); goog.require('spf'); +goog.require('spf.config'); /** @@ -203,6 +204,9 @@ spf.net.xhr.isChunked_ = function(xhr) { if (xhr.responseType == 'json') { return false; } + if (spf.config.get('assume-all-json-requests-chunked')){ + return true; + } // Determine whether to process chunks as they arrive. // This is only possible with chunked transfer encoding. // Note: handle Transfer-Encoding header values like: