Fix https handling when false