From 509f4da667e8e8aa32747a4c7935ecf883951b5e Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sun, 12 Oct 2025 15:18:29 +0530 Subject: [PATCH] chore(#1693): better comment explaining why bruno sets content-type header as false --- packages/bruno-electron/src/ipc/network/axios-instance.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }