From 15dd0db152d087263dae8e9ce41c614c51a33fa8 Mon Sep 17 00:00:00 2001 From: dhmlau Date: Mon, 23 Feb 2026 10:46:13 -0500 Subject: [PATCH] fix: fix ci with cert issue Signed-off-by: dhmlau --- packages/http-caching-proxy/src/http-caching-proxy.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/http-caching-proxy/src/http-caching-proxy.ts b/packages/http-caching-proxy/src/http-caching-proxy.ts index 6fdf2f65d8f8..bedc50aadc49 100644 --- a/packages/http-caching-proxy/src/http-caching-proxy.ts +++ b/packages/http-caching-proxy/src/http-caching-proxy.ts @@ -8,9 +8,9 @@ import debugFactory from 'debug'; import {once} from 'node:events'; import { createServer, + Server as HttpServer, IncomingMessage, OutgoingHttpHeaders, - Server as HttpServer, ServerResponse, } from 'node:http'; import {AddressInfo} from 'node:net'; @@ -89,6 +89,11 @@ export class HttpCachingProxy { // http status code. Please note that Axios creates a new error in such // condition and the original low-level error is lost validateStatus: () => true, + // Disable SSL certificate validation for HTTPS requests + // This is acceptable for a testing/caching proxy + httpsAgent: new (require('node:https').Agent)({ + rejectUnauthorized: false, + }), }); }