fix: missing some buffer contents in no-keepalive
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run

This commit is contained in:
KernelDeimos
2025-01-23 13:43:21 -05:00
parent ee136f4168
commit 3f5b34cd34
+5
View File
@@ -66,6 +66,11 @@ export const make_http_api = ({ Socket, DEFAULT_PORT }) => {
};
const TRANSFER_NO_KEEPALIVE = {
data: data => {
if ( buffer ) {
const bin = encoder.encode(buffer);
data = new Uint8Array([...bin, ...data]);
buffer = '';
}
res.emit('data', decoder.decode(data));
}
};