Some tidy up of the http response chunk streaming.