Fixed deprecation warning on response stream