mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 21:01:27 +00:00
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
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:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user