update bitrate detection
This commit is contained in:
parent
0e6672699e
commit
8c248c229a
10 changed files with 77 additions and 44 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue