> From: Justin Erenkrantz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 2:37 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: cvs commit: httpd-2.0 STATUS
> 
> On Tue, May 28, 2002 at 02:29:15PM -0700, Ryan Bloom wrote:
> > Don't try to return the error.  This is why we created the
error_bucket
> > type in Apache.
> >
> > The idea is that when a filter encounters an error, it creates an
> > error_bucket and passes it down the filter stack.  When the
HTTP_HEADER
> > filter sees the error_bucket, it just does the right thing.
> 
> This is from an input filter - is this the right thing?  The bucket
> would get passed "up" the filter stack back to ap_get_client_block.
> Or, do you mean that the input filter passes it to r->output_filters?
> 
> What should the input filter return so that processing is aborted
> without another error being returned to the client?  -- Justin

You should set r->status to 400 (BAD_REQUEST) and return an error
condition, most likely the HTTP status code, although ap_getline will
throw away the returned value in favor of r->status.

Ryan


Reply via email to