refrain from setting port explicitly if X-Forwarded-Proto is present