All tests working now.  Fixed premature sending of res.end() (line 413)
All tests working now.
Assume filter applies to ASCII and move check for res.end() to correct position.
Demo of problem with requesting gzipped content.