From: Travis B. <tb...@ph...> - 2010-10-14 21:31:38
|
In your ERXRouteController class you could test and cast the result of the response() method from WOActionResults to ERXRouteResults. You should be able to set the header there. Schrag promises he'll make this "better." tb On Oct 14, 2010, at 1:35 PM, Martin Samm wrote: > i'm using an ERRest app we've developed but when trying to consume the JSON data returned with jQuery we get issues with the responses Content-Type. Its set to application/json which is correct but seems to cause problems. How can i (for json responses only) amend that content-type to something else? I've had a good dig through the code but i just cant seem to get a handle on what to do. > > Many Thanks > > Martin Samm |