If you're using the bucket brigade API you'd have to intercept the headers and modify them there. You might have an easier time doing something like this using the stream API, but i don't really know, just taking a shot in the dark. I'd think that it's certainly possible though, somehow.

That said you might be better served catching whatever situation is causing you to want to do this earlier in the request cycle and keeping the response phase from doing whatever it wants to do in the first place and just causing the 404 to happen then.

Adam

Marc M. Adkins wrote:
Hmmm...it's a bucket brigade FilterRequestHandler output filter. It seems to not care what return code I use, whatever is in the bucket brigade goes out. Can I not return Apache2::Const::NOT_FOUND from handler()? That seems odd.

Marc M. Adkins wrote:
I'm trying to cause a 404 error from an output filter and it isn't doing what I expect. Is this even possible?

mma



Reply via email to