mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
bun run prettier
This commit is contained in:
committed by
github-actions[bot]
parent
8e45d216f2
commit
7fc4e20807
@@ -481,11 +481,7 @@ function ClientRequest(input, options, cb) {
|
||||
if (!this.hasHeader("Host")) {
|
||||
let hostHeader = host;
|
||||
const posColon = hostHeader.indexOf(":");
|
||||
if (
|
||||
posColon !== -1 &&
|
||||
hostHeader.includes(":", posColon + 1) &&
|
||||
hostHeader.charCodeAt(0) !== 91 /* '[' */
|
||||
) {
|
||||
if (posColon !== -1 && hostHeader.includes(":", posColon + 1) && hostHeader.charCodeAt(0) !== 91 /* '[' */) {
|
||||
hostHeader = `[${hostHeader}]`;
|
||||
}
|
||||
this.setHeader("Host", `${hostHeader}:${port}`);
|
||||
@@ -522,11 +518,7 @@ function ClientRequest(input, options, cb) {
|
||||
if (!this.hasHeader("Host")) {
|
||||
let hostHeader = host;
|
||||
const posColon = hostHeader.indexOf(":");
|
||||
if (
|
||||
posColon !== -1 &&
|
||||
hostHeader.includes(":", posColon + 1) &&
|
||||
hostHeader.charCodeAt(0) !== 91 /* '[' */
|
||||
) {
|
||||
if (posColon !== -1 && hostHeader.includes(":", posColon + 1) && hostHeader.charCodeAt(0) !== 91 /* '[' */) {
|
||||
hostHeader = `[${hostHeader}]`;
|
||||
}
|
||||
this.setHeader("Host", `${hostHeader}:${port}`);
|
||||
|
||||
Reference in New Issue
Block a user