diff --git a/packages/driver-http-node/src/index.js b/packages/driver-http-node/src/index.js index 0e191b0..840f26c 100644 --- a/packages/driver-http-node/src/index.js +++ b/packages/driver-http-node/src/index.js @@ -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(); } }