X-Forwarded-Proto header is a de facto standard for identifying the originating protocol of an HTTP request.
Previously the server port was stripped from the original Host header. Using the original header as-is by default makes more sense.