From b5521a2651b5444f10c20803279af6d9570069b7 Mon Sep 17 00:00:00 2001 From: Kent Sibilev Date: Fri, 1 Sep 2006 02:18:52 +0000 Subject: ActionWebService WSDL generation ignores HTTP_X_FORWARDED_HOST git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_web_service/dispatcher/action_controller_dispatcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionwebservice/lib/action_web_service/dispatcher') diff --git a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb index a959150f9d..2c7d5a0948 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb @@ -167,7 +167,7 @@ module ActionWebService # :nodoc: private def base_uri - host = request.env['HTTP_HOST'] || request.env['SERVER_NAME'] || 'localhost' + host = request.host_with_port relative_url_root = request.relative_url_root scheme = request.ssl? ? 'https' : 'http' '%s://%s%s/%s/' % [scheme, host, relative_url_root, self.class.controller_path] -- cgit v1.2.3