@nasl/cli 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/nasl.mjs +3 -3
- package/dist/bin/nasl.mjs.map +1 -1
- package/dist/bin/naslc.mjs +3 -3
- package/dist/bin/naslc.mjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
package/dist/index.mjs
CHANGED
|
@@ -32462,7 +32462,7 @@ function setProxy(options, configProxy, location) {
|
|
|
32462
32462
|
options.headers['Proxy-Authorization'] = 'Basic ' + base64;
|
|
32463
32463
|
}
|
|
32464
32464
|
|
|
32465
|
-
options.headers.host = options.hostname + (options.port ? ':' + options.port : '');
|
|
32465
|
+
options.headers.host = options.hostname + (options.port ? ':' + options.port : options.protocol === 'https:' ? ':443' : '');
|
|
32466
32466
|
const proxyHost = proxy.hostname || proxy.host;
|
|
32467
32467
|
options.hostname = proxyHost;
|
|
32468
32468
|
// Replace 'host' since options is not a URL object
|
|
@@ -32879,7 +32879,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
32879
32879
|
} else {
|
|
32880
32880
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
32881
32881
|
options.port = parsed.port;
|
|
32882
|
-
setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port :
|
|
32882
|
+
setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
|
|
32883
32883
|
}
|
|
32884
32884
|
|
|
32885
32885
|
let transport;
|