Skip to content

Commit 3492806

Browse files
committed
Add hostname in case it's needed for SNI
1 parent 91337fa commit 3492806

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package/oracledbinstall.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ function getFileReadStreamByProxy(hostname, path, proxyHostname, proxyPort) {
198198
host: proxyHostname,
199199
port: proxyPort,
200200
method: 'CONNECT',
201-
path: hostname + ':' + PORT
201+
path: hostname + ':' + PORT,
202+
headers: {
203+
'host': hostname + PORT,
204+
}
202205
});
203206

204207
req.on('error', reject);

0 commit comments

Comments
 (0)