check for X-Forwarded-Proto header to see if this connection had terminated SSL