I've never had a problem changing the content-type on a response using either %CSP.Page or %CSP.REST until now. No matter where I put the line to set the content-type to "application/json", it stubbornly emits a content-type of "text/html".
In OnPreHTTP: (I tried one at a time)
either
do %response.SetHeader("content-type", "application/json") // didn't work
or
set %response.ContentType = "text/plain" // didn't work
The same lines in OnProcessInput() didn't change the output content-type, either.
The class signature is
Class HS.Local.VA.HS.DocRepo.Prefetch.Service.RESTService Extends (Ens.Busi
.png)
.png)




.png)

.png)
