httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject Re: filter return values
Date Sun, 31 Dec 2000 23:41:46 GMT
On Sun, 31 Dec 2000 wrote:

> What happens when you return the actual HTTP error code.  The way this is
> supposed to work, is that a filter returns an HTTP error code, and the
> handler should detect that, and return the same code.  From there, it
> should work the same way returning an HTTP error from a handler worked in
> 1.3.

if i return the error code from the filter callback i still get 'document
contains no data'.  however, deeper down i can check if the return value
from ap_pass_brigade() ap_is_HTTP_SERVER_ERROR(), which i guess will have
to do.  would be nice if filter callbacks could return a server error to
apache though.  esp. since not all handlers will use ap_pass_brigade(),
e.g. those that use ap_rwrite(), which doesn't even check the return value
of ap_pass_brigade().

View raw message