fix streaming mode for sending back json
downloads/dumps.