http handling working as expected