mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
fmt
This commit is contained in:
parent
65eb113359
commit
be8c90de6f
2 changed files with 37 additions and 32 deletions
|
@ -514,7 +514,10 @@ Object.defineProperties(
|
||||||
_flushHeaders() {
|
_flushHeaders() {
|
||||||
console.log("flushHeaders");
|
console.log("flushHeaders");
|
||||||
if (this.socket) {
|
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) {
|
if (!this._headerSent) {
|
||||||
console.log("_writeHeader invoked");
|
console.log("_writeHeader invoked");
|
||||||
this._writeHeader();
|
this._writeHeader();
|
||||||
|
|
|
@ -801,19 +801,21 @@ class ClientRequest extends OutgoingMessage {
|
||||||
path = "/" + path;
|
path = "/" + path;
|
||||||
}
|
}
|
||||||
console.log("_createUrlStrFromOptions 9");
|
console.log("_createUrlStrFromOptions 9");
|
||||||
// try {
|
// try {
|
||||||
console.log({ url: `${protocol}//${auth ? `${auth}@` : ""}${host}${
|
console.log({
|
||||||
|
url: `${protocol}//${auth ? `${auth}@` : ""}${host}${
|
||||||
port === 80 ? "" : `:${port}`
|
port === 80 ? "" : `:${port}`
|
||||||
}${path}` })
|
}${path}`,
|
||||||
|
});
|
||||||
const url = new URL(
|
const url = new URL(
|
||||||
`${protocol}//${auth ? `${auth}@` : ""}${host}${
|
`${protocol}//${auth ? `${auth}@` : ""}${host}${
|
||||||
port === 80 ? "" : `:${port}`
|
port === 80 ? "" : `:${port}`
|
||||||
}${path}`,
|
}${path}`,
|
||||||
);
|
);
|
||||||
console.log(url);
|
console.log(url);
|
||||||
// } catch (error) {
|
// } catch (error) {
|
||||||
// console.log({ error })
|
// console.log({ error })
|
||||||
// }
|
// }
|
||||||
console.log("_createUrlStrFromOptions 10");
|
console.log("_createUrlStrFromOptions 10");
|
||||||
url.hash = hash;
|
url.hash = hash;
|
||||||
console.log("_createUrlStrFromOptions end");
|
console.log("_createUrlStrFromOptions end");
|
||||||
|
|
Loading…
Reference in a new issue