diff --git a/packages/bruno-electron/src/ipc/network/axios-instance.js b/packages/bruno-electron/src/ipc/network/axios-instance.js index b5a847228..651e891da 100644 --- a/packages/bruno-electron/src/ipc/network/axios-instance.js +++ b/packages/bruno-electron/src/ipc/network/axios-instance.js @@ -128,7 +128,10 @@ function makeAxiosInstance({ }); Object.entries(config.headers).forEach(([key, value]) => { - // Skip Bruno's internal content-type: false for no body requests + // See https://github.com/usebruno/bruno/issues/1693 + // Axios adds 'Content-Type': 'application/x-www-form-urlencoded for requests with no body + // Bruno sets content-type: false for no body requests so that axios doesn't add the default content-type header + // Hence we skip content-type if it's false if (key.toLowerCase() === 'content-type' && value === false) { return; }