Using cfheader in the onError method of application.cfc

Hey Everyone,

Using Lucee 4.5.2.018 I can’t seem to get any “cfheader” tags to work when
used inside the “onError” method of application.cfc. Specifically I’m
trying to set a statuscode and the content type but no header values make
it into the server response. The output text from the method does appear;
only the headers are getting toasted.

Anyone have some advice on this?

Thanks!

Of course I find out less than a half hour later that the answer (as usual)
is I’m dumb. I was debugging a webservice via a proxy page and I was
looking at the proxy page responses rather than the actual response from
the original request. sighOn Sunday, March 20, 2016 at 6:02:00 PM UTC-6, Bob Taves wrote:

Hey Everyone,

Using Lucee 4.5.2.018 I can’t seem to get any “cfheader” tags to work when
used inside the “onError” method of application.cfc. Specifically I’m
trying to set a statuscode and the content type but no header values make
it into the server response. The output text from the method does appear;
only the headers are getting toasted.

Anyone have some advice on this?

Thanks!