Re: Send custom response in req. body filter.

2022-09-30 Thread Dk Jack
Thanks Dounin, After stepping through the code, I came to the same conclusion but wanted to check just in case I missed something. Thanks for the help. -Dk On Fri, Sep 30, 2022 at 2:32 AM Maxim Dounin wrote: > Hello! > > On Thu, Sep 29, 2022 at 04:47:43PM -0700, Dk Jack wrote: > > > Hi, > > In

Re: Send custom response in req. body filter.

2022-09-30 Thread Maxim Dounin
Hello! On Thu, Sep 29, 2022 at 04:47:43PM -0700, Dk Jack wrote: > Hi, > In my module I have a body filter. In the body filter, I respond with a 4XX > if the body contains a matching pattern. This is working correctly. > > However, I would like to send a custom response message when the above > s

Send custom response in req. body filter.

2022-09-29 Thread Dk Jack
Hi, In my module I have a body filter. In the body filter, I respond with a 4XX if the body contains a matching pattern. This is working correctly. However, I would like to send a custom response message when the above situation occurs. I tried doing this by attaching a buffer to the output header