mirror of
https://github.com/denoland/deno.git
synced 2025-01-06 22:35:51 -05:00
enable another case
This commit is contained in:
parent
cf6ae67a31
commit
8714e718bc
2 changed files with 31 additions and 33 deletions
|
@ -703,16 +703,20 @@ function _lookupAndConnect(
|
||||||
} else {
|
} else {
|
||||||
self._unrefTimer();
|
self._unrefTimer();
|
||||||
|
|
||||||
defaultTriggerAsyncIdScope(
|
defaultTriggerAsyncIdScope(self[asyncIdSymbol], nextTick, () => {
|
||||||
self[asyncIdSymbol],
|
if (self.connecting) {
|
||||||
_internalConnect,
|
defaultTriggerAsyncIdScope(
|
||||||
self,
|
self[asyncIdSymbol],
|
||||||
ip,
|
_internalConnect,
|
||||||
port,
|
self,
|
||||||
addressType,
|
ip,
|
||||||
localAddress,
|
port,
|
||||||
localPort,
|
addressType,
|
||||||
);
|
localAddress,
|
||||||
|
localPort,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
@ -1074,30 +1074,24 @@ Deno.test("[node/https] node:https exports globalAgent", async () => {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
Deno.test(
|
Deno.test("[node/http] node:http request.setHeader(header, null) doesn't throw", () => {
|
||||||
"[node/http] node:http request.setHeader(header, null) doesn't throw",
|
|
||||||
{
|
{
|
||||||
ignore: true,
|
const req = http.request("http://localhost:4545/");
|
||||||
},
|
req.on("error", () => {});
|
||||||
() => {
|
// @ts-expect-error - null is not a valid header value
|
||||||
{
|
req.setHeader("foo", null);
|
||||||
const req = http.request("http://localhost:4545/");
|
req.end();
|
||||||
req.on("error", () => {});
|
req.destroy();
|
||||||
// @ts-expect-error - null is not a valid header value
|
}
|
||||||
req.setHeader("foo", null);
|
{
|
||||||
req.end();
|
const req = https.request("https://localhost:4545/");
|
||||||
req.destroy();
|
req.on("error", () => {});
|
||||||
}
|
// @ts-expect-error - null is not a valid header value
|
||||||
{
|
req.setHeader("foo", null);
|
||||||
const req = https.request("https://localhost:4545/");
|
req.end();
|
||||||
req.on("error", () => {});
|
req.destroy();
|
||||||
// @ts-expect-error - null is not a valid header value
|
}
|
||||||
req.setHeader("foo", null);
|
});
|
||||||
req.end();
|
|
||||||
req.destroy();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
Deno.test("[node/http] ServerResponse getHeader", async () => {
|
Deno.test("[node/http] ServerResponse getHeader", async () => {
|
||||||
const { promise, resolve } = Promise.withResolvers<void>();
|
const { promise, resolve } = Promise.withResolvers<void>();
|
||||||
|
|
Loading…
Reference in a new issue