From 6d0e5eaf06c6f285201bdbb7948c31281f15f8c5 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 17 Nov 2007 05:41:47 +0000 Subject: memoize host with port and refactor the tests which depend on it changing git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/request.rb') diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 8cfb6d3354..2926ead13a 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -166,7 +166,7 @@ module ActionController # Returns a host:port string for this request, such as example.com or # example.com:8080. def host_with_port - host + port_string + @host_with_port ||= host + port_string end # Returns the port number of this request as an integer. -- cgit v1.2.3