Merged with master
This commit is contained in:
parent
bcc39c467f
commit
78f4abd919
|
@ -475,7 +475,12 @@ function ulTest(done) {
|
||||||
testStream(i, 0);
|
testStream(i, 0);
|
||||||
};
|
};
|
||||||
xhr[i].open("POST", settings.url_ul + url_sep(settings.url_ul) + "r=" + Math.random(), true); // random string to prevent caching
|
xhr[i].open("POST", settings.url_ul + url_sep(settings.url_ul) + "r=" + Math.random(), true); // random string to prevent caching
|
||||||
|
try{
|
||||||
xhr[i].setRequestHeader("Content-Encoding", "identity"); // disable compression (some browsers may refuse it, but data is incompressible anyway)
|
xhr[i].setRequestHeader("Content-Encoding", "identity"); // disable compression (some browsers may refuse it, but data is incompressible anyway)
|
||||||
|
}catch(e){}
|
||||||
|
try{
|
||||||
|
xhr[i].setRequestHeader("Content-Type", "application/octet-stream"); //force content-type to application/octet-stream in case the server misinterprets it
|
||||||
|
}catch(e){}
|
||||||
xhr[i].send(reqsmall);
|
xhr[i].send(reqsmall);
|
||||||
} else {
|
} else {
|
||||||
// REGULAR version, no workaround
|
// REGULAR version, no workaround
|
||||||
|
@ -508,7 +513,12 @@ function ulTest(done) {
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
// send xhr
|
// send xhr
|
||||||
xhr[i].open("POST", settings.url_ul + url_sep(settings.url_ul) + "r=" + Math.random(), true); // random string to prevent caching
|
xhr[i].open("POST", settings.url_ul + url_sep(settings.url_ul) + "r=" + Math.random(), true); // random string to prevent caching
|
||||||
|
try{
|
||||||
xhr[i].setRequestHeader("Content-Encoding", "identity"); // disable compression (some browsers may refuse it, but data is incompressible anyway)
|
xhr[i].setRequestHeader("Content-Encoding", "identity"); // disable compression (some browsers may refuse it, but data is incompressible anyway)
|
||||||
|
}catch(e){}
|
||||||
|
try{
|
||||||
|
xhr[i].setRequestHeader("Content-Type", "application/octet-stream"); //force content-type to application/octet-stream in case the server misinterprets it
|
||||||
|
}catch(e){}
|
||||||
xhr[i].send(req);
|
xhr[i].send(req);
|
||||||
}
|
}
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
|
2
Frontend/speedtest_worker.min.js
vendored
2
Frontend/speedtest_worker.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue