update bitrate detection

This commit is contained in:
Luke Pulverenti 2015-09-05 17:15:36 -04:00
parent 0e6672699e
commit 8c248c229a
10 changed files with 77 additions and 44 deletions

View file

@ -43,8 +43,10 @@
function sendRequest(request) {
var method = request.type || "GET";
// For now, we can only handle json responses
if (request.dataType) {
if (request.dataType || method == "GET") {
if (request.dataType != 'json') {
return baseAjaxMethod(request);
}
@ -68,7 +70,7 @@
}
var javaRequest = {
Method: request.type || "GET",
Method: method,
Url: request.url,
RequestHeaders: request.headers
};