Commit 53f7c95b authored by jgould's avatar jgould

byte range requests

parent e3d5e476
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -10,7 +10,12 @@ morpheus.GctReader.prototype = { ...@@ -10,7 +10,12 @@ morpheus.GctReader.prototype = {
if (fileOrUrl instanceof File) { if (fileOrUrl instanceof File) {
this._readChunking(fileOrUrl, callback, false); this._readChunking(fileOrUrl, callback, false);
} else { } else {
this._readChunking(fileOrUrl, callback, true); try {
this._readChunking(fileOrUrl, callback, true);
} catch (x) {
this._readNoChunking(fileOrUrl, callback, false);
}
} }
}, },
_readChunking: function (fileOrUrl, callback, tryNoChunkIfError) { _readChunking: function (fileOrUrl, callback, tryNoChunkIfError) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment