Use Rack::Request to rebuild the url to request instead of trying to do it from env directly.