From 58fbe2e64b7d7f9f1b9e696f67bd4bb5a7dccf9a Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 16 Oct 2023 02:10:18 +0530 Subject: [PATCH] chore: cleanup --- .../CollectionSettings/Auth/AwsV4Auth/index.js | 1 - .../components/RequestPane/Auth/AwsV4Auth/index.js | 1 - packages/bruno-electron/src/ipc/network/index.js | 11 ----------- 3 files changed, 13 deletions(-) diff --git a/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js b/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js index 1fe35eea0..bc9cb67b5 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js @@ -12,7 +12,6 @@ const AwsV4Auth = ({ collection }) => { const { storedTheme } = useTheme(); const awsv4Auth = get(collection, 'root.request.auth.awsv4', {}); - console.log('saved auth', awsv4Auth); const handleSave = () => dispatch(saveCollectionRoot(collection.uid)); diff --git a/packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js b/packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js index 9ed29ac07..7c144fbf8 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js @@ -13,7 +13,6 @@ const AwsV4Auth = ({ onTokenChange, item, collection }) => { const { storedTheme } = useTheme(); const awsv4Auth = item.draft ? get(item, 'draft.request.auth.awsv4', {}) : get(item, 'request.auth.awsv4', {}); - console.log('saved auth', awsv4Auth); const handleRun = () => dispatch(sendRequest(item, collection.uid)); const handleSave = () => dispatch(saveRequest(item.uid, collection.uid)); diff --git a/packages/bruno-electron/src/ipc/network/index.js b/packages/bruno-electron/src/ipc/network/index.js index 9d308faf7..405ca7b73 100644 --- a/packages/bruno-electron/src/ipc/network/index.js +++ b/packages/bruno-electron/src/ipc/network/index.js @@ -210,17 +210,6 @@ const registerNetworkIpc = (mainWindow) => { const httpsAgentRequestFields = {}; if (!sslVerification) { httpsAgentRequestFields['rejectUnauthorized'] = false; - } else { - const cacertArray = [preferences['cacert'], process.env.SSL_CERT_FILE, process.env.NODE_EXTRA_CA_CERTS]; - cacertFile = cacertArray.find((el) => el); - if (cacertFile && cacertFile.length > 1) { - try { - caCrt = fs.readFileSync(cacertFile); - httpsAgentRequestFields['ca'] = caCrt; - } catch (err) { - console.log('Error reading CA cert file:' + cacertFile, err); - } - } } const brunoConfig = getBrunoConfig(collectionUid);