Skip to content

Commit eda4b76

Browse files
committed
fix: Proxy for o11y and a11y
1 parent e3c9346 commit eda4b76

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

bin/accessibility-automation/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ const nodeRequest = (type, url, data, config) => {
155155
};
156156

157157
if(process.env.HTTP_PROXY){
158-
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
158+
options.httpAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
159159

160160
} else if (process.env.HTTPS_PROXY){
161-
options.config.httpAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
161+
options.httpsAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
162162
}
163163

164164
axios(options).then(response => {

bin/testObservability/crashReporter/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ class CrashReporter {
157157
};
158158

159159
if(process.env.HTTP_PROXY){
160-
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
161-
160+
options.httpAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
161+
162162
} else if (process.env.HTTPS_PROXY){
163-
options.config.httpAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
163+
options.httpsAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
164164
}
165-
165+
166166
axios(options)
167167
.then(response => {
168168
consoleHolder.log("Resp3->", response);

bin/testObservability/helper/helper.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ const nodeRequest = (type, url, data, config) => {
134134
};
135135

136136
if(process.env.HTTP_PROXY){
137-
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
138-
137+
options.httpAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
138+
139139
} else if (process.env.HTTPS_PROXY){
140-
options.config.httpAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
140+
options.httpsAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
141141
}
142+
142143
if(url === exports.requestQueueHandler.screenshotEventUrl) {
143144
options.agent = httpsScreenshotsKeepAliveAgent;
144145
}

0 commit comments

Comments
 (0)