Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cnr-isti-vclab/nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
ponchio committed May 2, 2017
2 parents cc641f7 + a7d611f commit dca73de
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion html/js/nexus.js
Expand Up @@ -281,7 +281,15 @@ Mesh.prototype = {
r.open('GET', this.url(), true);
r.responseType = type;
r.setRequestHeader("Range", "bytes=" + start + "-" + (end -1));
r.onload = load;
r.onload = function(){
switch (this.status){
case 206:
load.bind(this)();
break;
case 200:
console.log("200 response; server does not support byte range requests.")
}
};
r.onerror = error;
r.onabort = abort;
r.send();
Expand Down

0 comments on commit dca73de

Please sign in to comment.