Node's httpd seems to need Buffer, not merely Uint8Array

This commit is contained in:
Tony Garnock-Jones 2018-11-21 14:22:58 +00:00
parent 6f2d731867
commit b19c92f957
1 changed files with 2 additions and 2 deletions

View File

@ -179,11 +179,11 @@ function _server(host, port, httpsOptions) {
facet.stop();
}
on message DataOut(id, $chunk) {
res.write(Bytes.toIO(chunk));
res.write(Buffer.from(Bytes.toIO(chunk)));
}
}
} else {
res.end(detail);
res.end(Buffer.from(Bytes.toIO(detail)));
facet.stop();
}
}