I'm experiencing a weird response header format which I've never seen before, how do I get the key-value pair of the location using nodejs / javascript?
This header is gotten using response.headers
Headers {
[Symbol(map)]: [Object: null prototype] {
date: [ 'Mon, 06 Dec 2021 16:11:51 GMT' ],
'content-type': [ 'text/plain' ],
'content-length': [ '0' ],
connection: [ 'close' ],
location: [
'https://abc'
]
}}