Fix SSL header check