1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/middleware
Andre Arko 9432163c60 refactor RemoteIp middleware
- return the last forwarded IP before REMOTE_ADDR to handle proxies
- remove completely superfluous RemoteIpGetter class
- remove duplication of trusted proxies regexp
- remove unused constant from Request
- move comments from Request to where they are actually relevant
- edit comments for clarity of purpose

The original code (confusingly) tried to return REMOTE_ADDR both at the beginning and the end of the chain of options. Since REMOTE_ADDR is _always_ set, this is kind of silly. This change leaves REMOTE_ADDR as the last option, so that proxied requests will be assigned the correct remote IP address.
2011-11-11 21:25:08 -10:00
..
session Add ActionDispatch::Session::CacheStore as a generic way of storing sessions in a cache. 2011-10-21 13:13:29 -05:00
templates/rescues Don't pluralize, camelize. 2011-05-06 17:00:59 +02:00
best_standards_support.rb Improve best_standards_support to use only IE=Edge in development mode 2010-08-09 11:48:31 -07:00
callbacks.rb removed deprecated methods, and related tests, from ActionPack 2011-05-24 23:38:59 +02:00
closed_error.rb Add ClosedError message to the initializer 2011-04-06 15:45:23 -03:00
cookies.rb Remove superfluous assignment in cookies 2011-10-18 22:57:55 +04:00
flash.rb Add some implementation docs. closes #3298. closes #2509. 2011-10-12 09:29:40 +02:00
head.rb remove warning: assigned but unused variable 2011-06-08 00:26:09 -03:00
params_parser.rb
reloader.rb Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface. 2011-01-31 19:45:53 -02:00
remote_ip.rb refactor RemoteIp middleware 2011-11-11 21:25:08 -10:00
request_id.rb Remove the unneeded \d when sanitizing X-Request-Id. 2011-10-20 10:00:42 +03:00
rescue.rb
show_exceptions.rb Deprecate passing the template handler in the template name. 2011-09-22 15:37:38 +02:00
stack.rb Merge branch 'master' into nested_has_many_through 2011-03-04 09:30:27 +00:00
static.rb cache strings in the AST for faster comparison than include? 2011-05-03 09:59:21 -07:00