From 86433b8d5f1a7d28e0bb6ceeaf824e67acf4b759 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Fri, 18 Jul 2014 13:27:43 -0400 Subject: [PATCH] Add CHANGELOG for #14886 Also cleanup test a bit [related #14886] [related #14743] --- actionpack/CHANGELOG.md | 5 +++++ actionpack/test/dispatch/request_test.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index f73f5bc797..c30217b8fe 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -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"]` diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index beae95f3fd..2763bd661f 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -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