Making sure to flush output from writer in RequestResponse