Fixes issue where proxied requests to dynamic content through the Hosting emulator would return unexpected location headers. (#3097)