-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,7 +198,7 @@ test('proxies HTTPS request', async (t) => { | |
globalProxyAgent.HTTP_PROXY = proxyServer.url; | ||
|
||
const response = await new Promise((resolve) => { | ||
https.get('https://127.0.0.1', createHttpResponseResolver(resolve)); | ||
https.get('https://127.0.0.1', {}, createHttpResponseResolver(resolve)); | ||
}); | ||
|
||
t.assert(response.body === 'OK'); | ||
|
@@ -219,7 +219,7 @@ test('proxies HTTPS request with proxy-authorization header', async (t) => { | |
globalProxyAgent.HTTP_PROXY = 'http://[email protected]:' + proxyServer.port; | ||
|
||
const response = await new Promise((resolve) => { | ||
https.get('https://127.0.0.1', createHttpResponseResolver(resolve)); | ||
https.get('https://127.0.0.1', {}, createHttpResponseResolver(resolve)); | ||
}); | ||
|
||
t.assert(response.body === 'OK'); | ||
|
@@ -245,7 +245,7 @@ test('proxies HTTPS request with dedicated proxy', async (t) => { | |
globalProxyAgent.HTTPS_PROXY = proxyServer.url; | ||
|
||
const response = await new Promise((resolve) => { | ||
https.get('https://127.0.0.1', createHttpResponseResolver(resolve)); | ||
https.get('https://127.0.0.1', {}, createHttpResponseResolver(resolve)); | ||
}); | ||
|
||
t.assert(response.body === 'OK'); | ||
|
@@ -260,7 +260,7 @@ test('ignores dedicated HTTPS proxy for HTTP urls', async (t) => { | |
globalProxyAgent.HTTPS_PROXY = 'http://example.org'; | ||
|
||
const response = await new Promise((resolve) => { | ||
http.get('http://127.0.0.1', createHttpResponseResolver(resolve)); | ||
http.get('http://127.0.0.1', {}, createHttpResponseResolver(resolve)); | ||
}); | ||
|
||
t.assert(response.body === 'OK'); | ||
|