Skip to content

Commit 7b0164c

Browse files
committed
Merge remote-tracking branch 'origin/main' into tests/websocket
2 parents f57d833 + d432961 commit 7b0164c

9 files changed

+161
-212
lines changed

lib/proxy-agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ProxyAgent extends DispatcherBase {
6666
this[kProxyHeaders] = opts.headers || {}
6767

6868
const resolvedUrl = new URL(opts.uri)
69-
const { origin, port, host, username, password } = resolvedUrl
69+
const { origin, port, username, password } = resolvedUrl
7070

7171
if (opts.auth && opts.token) {
7272
throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')
@@ -97,7 +97,7 @@ class ProxyAgent extends DispatcherBase {
9797
signal: opts.signal,
9898
headers: {
9999
...this[kProxyHeaders],
100-
host
100+
host: requestedHost
101101
}
102102
})
103103
if (statusCode !== 200) {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
"lint": "standard | snazzy",
7777
"lint:fix": "standard --fix | snazzy",
7878
"test": "node scripts/generate-pem && npm run test:tap && npm run test:node-fetch && npm run test:fetch && npm run test:cookies && npm run test:wpt && npm run test:websocket && npm run test:jest && npm run test:typescript",
79-
"test:cookies": "tap test/cookie/*.js",
79+
"test:cookies": "borp --coverage -p \"test/cookie/*.js\"",
8080
"test:node-fetch": "mocha --exit test/node-fetch",
81-
"test:fetch": "npm run build:node && tap --expose-gc test/fetch/*.js && tap test/webidl/*.js",
81+
"test:fetch": "npm run build:node && tap --expose-gc test/fetch/*.js && borp --coverage -p \"test/webidl/*.js\"",
8282
"test:jest": "jest",
8383
"test:tap": "tap test/*.js test/diagnostics-channel/*.js",
8484
"test:tdd": "tap test/*.js test/diagnostics-channel/*.js -w",

0 commit comments

Comments
 (0)