1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add CHANGELOG for #14886

Also cleanup test a bit

[related #14886]
[related #14743]
This commit is contained in:
Arthur Neves 2014-07-18 13:27:43 -04:00
parent 9ff18e4626
commit 86433b8d5f
No known key found for this signature in database
GPG key ID: 04A390FB1E433E17
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
* Allows ActionDispatch::Request::LOCALHOST to match any IPv4 127.0.0.0/8
loopback address.
*Earl St Sauver*, *Sven Riedel*
* Preserve original path in `ShowExceptions` middleware by stashing it as
`env["action_dispatch.original_path"]`

View file

@ -531,7 +531,7 @@ end
class LocalhostTest < BaseRequestTest
test "IPs that match localhost" do
request = stub_request("REMOTE_IP" => "127.1.1.1", "REMOTE_ADDR" => "127.1.1.1")
assert_equal !!request.local?, true
assert request.local?
end
end