updated Request->isSsl function