Protocol detection is done case-insensitive, fix assertion