update https handler