You can clone with
Bump version and compat
Remove Content-Length since we are streaming and don't know the final…
At some point later we make check to see if the stream is an array and if so
include the Content-Length. But under the current code the body gets truncated
sometimes if lots of replacements are done. This removes the problem.
Allow for charset in content type. Also handle case of no content type.
Only apply filter on proper mime types.
Default to text/html but allow application to override.