Update index.js

main
catvod 2 years ago committed by GitHub
parent 05e375e730
commit b4776c6ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      open/wrapper/index.js

@ -95,8 +95,9 @@ async function request(url, opt) {
data.on('end', async () => { data.on('end', async () => {
if (stream['onDone']) await stream['onDone'](); if (stream['onDone']) await stream['onDone']();
}); });
} else {
if (stream['onDone']) await stream['onDone']();
} }
if (stream['onDone']) await stream['onDone']();
return 'stream...'; return 'stream...';
} }
return { code: resp.status, headers: resHeader, content: data }; return { code: resp.status, headers: resHeader, content: data };

Loading…
Cancel
Save