Fix issue with parsing x-forwarded-host header

Issue: SPR-10701