fixed the http stream code fo real this time promise