Skip to content

Commit

Permalink
chore: incomplete comment docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Nov 20, 2023
1 parent 3c2e0b4 commit 2c0ca43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export class TypedClient {
if ((reqOptions.protocol === 'http:' && port !== 80) || (reqOptions.protocol === 'https:' && port !== 443)) {
const ipVersion = isIP(host)
if (ipVersion === 6) {
// IP is IPv6, we should
// IP is IPv6, we should enclose the host with brackets
reqOptions.headers.host = `[${host}]:${port}`
} else {
// IP must be IPv4
Expand Down

0 comments on commit 2c0ca43

Please sign in to comment.