I have a JS object and I want to add to it a field named "Content-Type". I add it using the bracket notation as usual.
params["Content-Type"] = "application/json"
But the problem that I am facing is that, this field gets added as a string. Like this
Id: 'de311',
Key: 'Idn71bf9',
'Content-Type': 'image/jpeg'
The Content-Type field is being added as a string (with single quotes), which is not accessible I guess.
If the question isn't clear I am happy to explain.