diff --git a/packages/bruno-cli/src/runner/prepare-request.js b/packages/bruno-cli/src/runner/prepare-request.js index 1d18d5293..de0dbd143 100644 --- a/packages/bruno-cli/src/runner/prepare-request.js +++ b/packages/bruno-cli/src/runner/prepare-request.js @@ -118,7 +118,7 @@ const prepareRequest = (item = {}, collection = {}) => { if (request.body.mode === 'xml') { if (!contentTypeDefined) { - axiosRequest.headers['content-type'] = 'text/xml'; + axiosRequest.headers['content-type'] = 'application/xml'; } axiosRequest.data = request.body.xml; } diff --git a/packages/bruno-electron/src/ipc/network/prepare-request.js b/packages/bruno-electron/src/ipc/network/prepare-request.js index a544c9709..f3aea2c8f 100644 --- a/packages/bruno-electron/src/ipc/network/prepare-request.js +++ b/packages/bruno-electron/src/ipc/network/prepare-request.js @@ -224,7 +224,7 @@ const prepareRequest = (item, collection) => { if (request.body.mode === 'xml') { if (!contentTypeDefined) { - axiosRequest.headers['content-type'] = 'text/xml'; + axiosRequest.headers['content-type'] = 'application/xml'; } axiosRequest.data = request.body.xml; }