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:
parent
9ff18e4626
commit
86433b8d5f
2 changed files with 6 additions and 1 deletions
|
@ -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"]`
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue