Forked and patched in streamed_response