Fix #1401 by integrating @derigel23's change to rewrite host.
Merge pull request #1402 from NuGet/anurse/1401-curatedfeedhostname

Fix #1401 by integrating @derigel23's change to rewrite host.