diff --git a/packages/bruno-electron/src/ipc/network/index.js b/packages/bruno-electron/src/ipc/network/index.js index 97e3b8557..d08867289 100644 --- a/packages/bruno-electron/src/ipc/network/index.js +++ b/packages/bruno-electron/src/ipc/network/index.js @@ -233,6 +233,10 @@ const configureRequest = async ( ); request.httpAgent = new HttpProxyAgent(proxyUri); } + } else { + request.httpsAgent = new https.Agent({ + ...httpsAgentRequestFields + }); } } else if (proxyMode === 'system') { const { http_proxy, https_proxy, no_proxy } = preferencesUtil.getSystemProxyEnvVariables(); @@ -257,6 +261,10 @@ const configureRequest = async ( } catch (error) { throw new Error('Invalid system https_proxy'); } + } else { + request.httpsAgent = new https.Agent({ + ...httpsAgentRequestFields + }); } } else if (Object.keys(httpsAgentRequestFields).length > 0) { request.httpsAgent = new https.Agent({