Fix: Improved HTTPS detection

Improved detecton of HTTPS request scheme in order to prevent false
positives.