Changes to RESTlet script
Currently, any RESTlet script that returns HTML content is determined by the Content-Type header in the HTTP request. If the Content-Type header of the HTTP request has a value, the value gets passed to the HTTP response. If there is no Content-Type header defined in the HTTP request, the default value of the HTTP response Content-Type header is HTML (or text/html).
As of September 30, 2024, any RESTlet script that does not have a defined HTTP request Content-
Type header will have a default HTTP response Content-Type header of plain text (or text/plain). If you require any RESTlet scripts to have a return value in HTML format, you must update these scripts. Use the restlet.createResponse(options) method of the new N/scriptTypes/restlet module to set the RESTlet's HTTP response Content-Type header to text/html explicitly.
The restlet.createResponse(options) method lets you specify the Content-Type header for your Restlet response to ensure that it is in the format that you intend it to be. You can use this method in the return statement of your RESTlet script’s entry point functions. For more information, see the help topic N/ scriptTypes/restlet Module.