We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 920a305 commit 6c5a3f6Copy full SHA for 6c5a3f6
lib/internal/http.js
@@ -113,7 +113,7 @@ class ProxyConfig {
113
this.href = proxyUrl; // Full URL of the proxy server.
114
this.host = host; // Full host including port, e.g. 'localhost:8080'.
115
// Trim off the brackets from IPv6 addresses. As it's parsed from a valid URL, an opening
116
- // "[" Must already have a matching "]" at the end.
+ // "[" must already have a matching "]" at the end.
117
this.hostname = hostname[0] === '[' ? hostname.slice(1, -1) : hostname;
118
this.port = port ? NumberParseInt(port, 10) : (protocol === 'https:' ? 443 : 80);
119
this.protocol = protocol; // Protocol of the proxy server, e.g. 'http:' or 'https:'.
0 commit comments