Tweaking protocol detection for HTTPS.