Cleaning up parsing response headers in streams