Use forwarded host when provided. fix #1922