Fix http vs https request identification