diff --git a/packages/bruno-electron/src/ipc/network/index.js b/packages/bruno-electron/src/ipc/network/index.js index a3c9d98ab1..992d24b03b 100644 --- a/packages/bruno-electron/src/ipc/network/index.js +++ b/packages/bruno-electron/src/ipc/network/index.js @@ -1006,13 +1006,10 @@ const registerNetworkIpc = (mainWindow) => { }; const getFileNameBasedOnContentTypeHeader = () => { - const contentType = getHeaderValue('content-type'); return `response.${getFileExtension(contentType)}`; }; const getFormattedResponseIfJson = () => { - const contentType = getHeaderValue('content-type'); - if (getFileExtension(contentType) === 'json') { return Buffer.from(JSON.stringify(response.data, null, 2), 'utf8'); }