mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
parent
13a45ae994
commit
4db534d461
2 changed files with 4 additions and 0 deletions
|
@ -350,6 +350,9 @@ Deno.test("[node/http] send request with non-chunked body", async () => {
|
|||
assertEquals(requestHeaders.has("transfer-encoding"), false);
|
||||
assertEquals(requestBody, "hello world");
|
||||
});
|
||||
req.on("socket", (socket) => {
|
||||
socket.setKeepAlive();
|
||||
});
|
||||
req.write("hello ");
|
||||
req.write("world");
|
||||
req.end();
|
||||
|
|
|
@ -274,6 +274,7 @@ const kError = Symbol("kError");
|
|||
const kUniqueHeaders = Symbol("kUniqueHeaders");
|
||||
|
||||
class FakeSocket extends EventEmitter {
|
||||
setKeepAlive() {}
|
||||
}
|
||||
|
||||
/** ClientRequest represents the http(s) request from the client */
|
||||
|
|
Loading…
Reference in a new issue