Commit 14d53baa authored by Skye Yu's avatar Skye Yu

test:

parent d4c7c262
...@@ -717,8 +717,8 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress) ...@@ -717,8 +717,8 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
let handler = (msg) => { let handler = (msg) => {
if (msg != null) { if (msg != null) {
flen += msg.body.length || msg.body.byteLength; flen += msg.body.length || msg.body.byteLength;
const data = msg.body.join('').replace(/4869446F636B564D.*/, '').split(''); // const data = msg.body.join('').replace(/4869446F636B564D.*/, '').split('');
ondata(data); ondata(msg.data);
// return OK indicates all file blocks received // return OK indicates all file blocks received
if (flen >= length) return 'OK'; if (flen >= length) return 'OK';
} else { } 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