Fixed embed code when compiled without java installed.
This commit is contained in:
parent
b95ec25255
commit
30b8b90ce5
1 changed files with 5 additions and 1 deletions
|
@ -372,7 +372,11 @@ namespace Connector_HTTP {
|
|||
response += "mistvideo['" + streamname + "'] = " + json_resp.toString() + ";\n";
|
||||
if (url.substr(0, 6) != "/info_" && !json_resp.isMember("error")){
|
||||
response.append("\n(");
|
||||
response.append((char*)embed_js, (size_t)embed_js_len - 2); //remove trailing ";\n" from xxd conversion
|
||||
if (embed_js[embed_js_len - 2] == ';'){//check if we have a trailing ;\n or just \n
|
||||
response.append((char*)embed_js, (size_t)embed_js_len - 2); //remove trailing ";\n" from xxd conversion
|
||||
}else{
|
||||
response.append((char*)embed_js, (size_t)embed_js_len - 1); //remove trailing "\n" from xxd conversion
|
||||
}
|
||||
response.append("(\"" + streamname + "\"));\n");
|
||||
}
|
||||
H.SetBody(response);
|
||||
|
|
Loading…
Add table
Reference in a new issue