This prevents early filters from incorrectly setting the content length, which will almost certainly be wrong if there are any filters after it. TO DO Add a buffered mode to the final output, so that we can send a proper Content-Length header. This uses some funny stuff to figure out when the currently executing handler is the last handler in the chain. Poke around a bit in the code before you try anything. Let me know if you have a better idea.
Suggestions are welcome.
Copyright 1998 Ken Williams. All rights reserved.