Mac: not possible to add Content-Length header to pm.sendRequest

Hello,

I am a mac user and I have request in postman (version 8.8.0 (8.8.0)) with tests in which I am repetitively sending the request. The problem is that the content-length header is not added at all. Here is how the code looks:
pm.sendRequest({
url: “https://<my_url>”,
method: ‘GET’,
header: {
‘Content-Type’: ‘application/json’,
‘Content-Length’: 348
},
body: {}
}, function (err, res) {
//callback
});

Here is what I actually get in the request headers:
Content-Type: application/json

User-Agent: PostmanRuntime/7.28.2

Accept: /

Postman-Token: 142ff383-904c-49f2-a577-9fb7d9a44e6b

Host: <my_host>

Accept-Encoding: gzip, deflate, br

Okay, I actually sorted it out. Apparently, Postman will set content-length dynamically if you switch from GET to POST. Seems, it’s designed to not allow content-length header and body to be set for GET requests (which does make sense for sure)

Sort off, because a GET with a long Authorization ends up being truncated in python because of lack of content length ? Convoluted ? You bet…