Bug fix for validating https type