Skip to content

Commit 15dd0db

Browse files
committed
fix: fix ci with cert issue
Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
1 parent 25080e7 commit 15dd0db

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/http-caching-proxy/src/http-caching-proxy.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import debugFactory from 'debug';
88
import {once} from 'node:events';
99
import {
1010
createServer,
11+
Server as HttpServer,
1112
IncomingMessage,
1213
OutgoingHttpHeaders,
13-
Server as HttpServer,
1414
ServerResponse,
1515
} from 'node:http';
1616
import {AddressInfo} from 'node:net';
@@ -89,6 +89,11 @@ export class HttpCachingProxy {
8989
// http status code. Please note that Axios creates a new error in such
9090
// condition and the original low-level error is lost
9191
validateStatus: () => true,
92+
// Disable SSL certificate validation for HTTPS requests
93+
// This is acceptable for a testing/caching proxy
94+
httpsAgent: new (require('node:https').Agent)({
95+
rejectUnauthorized: false,
96+
}),
9297
});
9398
}
9499

0 commit comments

Comments
 (0)