Is there not a setContentType for the Response obj...
# suitescript
d
Is there not a setContentType for the Response object in SS2.0?
s
maybe you just set the HTTP response header naturally?
d
I'll try that
s
I hope that works, as I think having a separate dedicated method for doing the same thing doesn't add much except make one have to ask questions. Bad API design for the modern days imho
j
in a suitelet
Copy code
ctx.response.setHeader({ name: 'content-type', value: 'application/json' });