Make filename match type
Test to make sure the response stream is left open when the response status is InternalServerError
Merge pull request #1016 from damianh/ResponseStreamRemainsOpen

Response stream remains open