Added more logic for http streaming

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>