Railo sends a Content-Type Header of "text/html" back when a CFC is called with or has the parameter returnformat="json".
This should be "application/json", since some clients and webservices need a proper returnFormat to parse the result.
It can be set with CFHEADER, but:
- then, Railo sends always this header, even when different clients need different returnFormats,
- and CFHEADER is not supported in CFSCRIPT.