mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed that @request.remote_ip didn't work in the test environment #369 [Bruno Mattarollo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
256d387159
commit
670fa63342
1 changed files with 4 additions and 4 deletions
|
@ -57,10 +57,10 @@ module ActionController #:nodoc:
|
|||
end
|
||||
|
||||
def initialize_default_values
|
||||
@host = "test.host"
|
||||
@request_uri = "/"
|
||||
@remote_addr = "127.0.0.1"
|
||||
@env["SERVER_PORT"] = 80
|
||||
@host = "test.host"
|
||||
@request_uri = "/"
|
||||
@remote_addr, @remote_ip = "127.0.0.1"
|
||||
@env["SERVER_PORT"] = 80
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue