Skip to content

Commit 3e5bd39

Browse files
committed
https-proxy-agent: move comment into if statement
1 parent b9bd5e2 commit 3e5bd39

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

https-proxy-agent.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ HttpsProxyAgent.prototype.createConnection = function (opts, fn) {
8181
//console.log(b.length, b, b.toString());
8282
// TODO: verify that the socket is properly connected, check response...
8383

84-
// since the proxy is connecting to an SSL server, we have
85-
// to upgrade this socket connection to an SSL connection
8684
var sock = socket;
85+
8786
if (self.secureEndpoint) {
87+
// since the proxy is connecting to an SSL server, we have
88+
// to upgrade this socket connection to an SSL connection
8889
sock = tls.connect({
8990
socket: socket,
9091
servername: opts.host

0 commit comments

Comments
 (0)