1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
This commit is contained in:
Yoshiya Hinosawa 2024-09-24 20:28:50 +09:00
parent 65eb113359
commit be8c90de6f
No known key found for this signature in database
GPG key ID: 9017DB4559488785
2 changed files with 37 additions and 32 deletions

View file

@ -514,7 +514,10 @@ Object.defineProperties(
_flushHeaders() {
console.log("flushHeaders");
if (this.socket) {
console.log("socket found: ", { headerSent: this._headerSent, header: this._header });
console.log("socket found: ", {
headerSent: this._headerSent,
header: this._header,
});
if (!this._headerSent) {
console.log("_writeHeader invoked");
this._writeHeader();

View file

@ -801,19 +801,21 @@ class ClientRequest extends OutgoingMessage {
path = "/" + path;
}
console.log("_createUrlStrFromOptions 9");
// try {
console.log({ url: `${protocol}//${auth ? `${auth}@` : ""}${host}${
// try {
console.log({
url: `${protocol}//${auth ? `${auth}@` : ""}${host}${
port === 80 ? "" : `:${port}`
}${path}` })
}${path}`,
});
const url = new URL(
`${protocol}//${auth ? `${auth}@` : ""}${host}${
port === 80 ? "" : `:${port}`
}${path}`,
);
console.log(url);
// } catch (error) {
// } catch (error) {
// console.log({ error })
// }
// }
console.log("_createUrlStrFromOptions 10");
url.hash = hash;
console.log("_createUrlStrFromOptions end");