Commit d4c7c262 authored by Skye Yu's avatar Skye Yu

test: get file filter HiDockVM data

parent a892c06b
......@@ -717,7 +717,8 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
let handler = (msg) => {
if (msg != null) {
flen += msg.body.length || msg.body.byteLength;
ondata(msg.body);
const data = msg.body.join('').replace(/4869446F636B564D.*/, '').split('');
ondata(data);
// return OK indicates all file blocks received
if (flen >= length) return 'OK';
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment