Fix http redirect call