Add support for X-Forwarded-Proto header in isHttps()