mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-27 15:31:37 +02:00
chore: cleanup
This commit is contained in:
parent
333564f687
commit
58fbe2e64b
@ -12,7 +12,6 @@ const AwsV4Auth = ({ collection }) => {
|
|||||||
const { storedTheme } = useTheme();
|
const { storedTheme } = useTheme();
|
||||||
|
|
||||||
const awsv4Auth = get(collection, 'root.request.auth.awsv4', {});
|
const awsv4Auth = get(collection, 'root.request.auth.awsv4', {});
|
||||||
console.log('saved auth', awsv4Auth);
|
|
||||||
|
|
||||||
const handleSave = () => dispatch(saveCollectionRoot(collection.uid));
|
const handleSave = () => dispatch(saveCollectionRoot(collection.uid));
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@ const AwsV4Auth = ({ onTokenChange, item, collection }) => {
|
|||||||
const { storedTheme } = useTheme();
|
const { storedTheme } = useTheme();
|
||||||
|
|
||||||
const awsv4Auth = item.draft ? get(item, 'draft.request.auth.awsv4', {}) : get(item, 'request.auth.awsv4', {});
|
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 handleRun = () => dispatch(sendRequest(item, collection.uid));
|
||||||
const handleSave = () => dispatch(saveRequest(item.uid, collection.uid));
|
const handleSave = () => dispatch(saveRequest(item.uid, collection.uid));
|
||||||
|
@ -210,17 +210,6 @@ const registerNetworkIpc = (mainWindow) => {
|
|||||||
const httpsAgentRequestFields = {};
|
const httpsAgentRequestFields = {};
|
||||||
if (!sslVerification) {
|
if (!sslVerification) {
|
||||||
httpsAgentRequestFields['rejectUnauthorized'] = false;
|
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);
|
const brunoConfig = getBrunoConfig(collectionUid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user