Re: How to read data in a request handler and then return DECLINED without consuming the data in the bucket brigade?

2018-06-04 Thread Yann Ylavic
On Mon, Jun 4, 2018 at 7:23 PM, Paul Callahan wrote: > > I did try with input filters. The reason I'm trying to do this in a > handler is because I want to return 403 to the browser if the request body > has something unsavory in it. With reverse proxied requests, it appears > the input filter

Re: How to read data in a request handler and then return DECLINED without consuming the data in the bucket brigade?

2018-06-04 Thread Nick Kew
On Mon, 4 Jun 2018 10:23:59 -0700 Paul Callahan wrote: > Thank you for your replies. > > I did try with input filters. The reason I'm trying to do this in a > handler is because I want to return 403 to the browser if the request > body has something unsavory in it. With reverse proxied reques

Re: How to read data in a request handler and then return DECLINED without consuming the data in the bucket brigade?

2018-06-04 Thread Paul Callahan
Thank you for your replies. I did try with input filters. The reason I'm trying to do this in a handler is because I want to return 403 to the browser if the request body has something unsavory in it. With reverse proxied requests, it appears the input filter fires too late and if I try to send

Re: How to read data in a request handler and then return DECLINED without consuming the data in the bucket brigade?

2018-06-04 Thread Nick Kew
> On 4 Jun 2018, at 08:55, Sorin Manolache wrote: > > On 2018-06-04 08:27, Paul Callahan wrote: >> In apache modules, my understanding is if a handler declines a request, the >> request is passed on to the next suitable handler. I'm finding though if >> I read the bucket_brigade/request body,

Re: How to read data in a request handler and then return DECLINED without consuming the data in the bucket brigade?

2018-06-04 Thread Sorin Manolache
On 2018-06-04 08:27, Paul Callahan wrote: In apache modules, my understanding is if a handler declines a request, the request is passed on to the next suitable handler. I'm finding though if I read the bucket_brigade/request body, and then decline the request, the subsequent handler doesn't get