I want to understand this new change with RESTlet,...
# suitescript
s
I want to understand this new change with RESTlet, we have a bunch of restless that t act as API enpoints for external applications and the return JSON does anything need to be changed in terms of the headers
m
@Sim Greenbaum Essentially, Restlets currently default to a text/html response type if no header value is set. Later this month the default response type is changing to just plain text. If your already setting headers on the response type of your restlet, then you should be fine. If not, I'd update those scripts to set an appropriate header for the response type.
s
so what would i have to change if this is my current script
Copy code
return JSON.stringify(results);
m
Since your calling JSON.stringify, you'll be good as you're returning plain text.