1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch
Andre Arko 75dcdbc84e Restore original remote_ip algorithm.
Proxy servers add X-Forwarded-For headers, resulting in a list of IPs. We
remove trusted IP values, and then take the last given value, assuming that
it is the most likely to be the correct, unfaked value. See [1] for a very
thorough discussion of why that is the best option we have at the moment.

[1]: http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/

Fixes #7979
2013-01-02 15:26:27 -08:00
..
middleware_stack make sure string keys are always looked up from the class cache 2011-03-02 10:11:28 -08:00
request Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
routing Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
session Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
best_standards_support_test.rb Fix #8086 (BestStandardsSupport rewrites app X-UA-Compatible header, now appends). 2012-11-01 15:15:46 +04:00
callbacks_test.rb ActionDispatch: add missing test for callbacks 2012-02-16 15:58:58 +02:00
cookies_test.rb Allow users to change the default salt if they want, shouldn't be necessary 2012-11-03 14:57:54 -02:00
debug_exceptions_test.rb Fix test for DebugExceptions due to template change 2012-12-31 16:48:10 -05:00
header_test.rb add test for fetch with a block 2012-10-18 15:22:58 -07:00
live_response_test.rb Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
mapper_test.rb Raise a helpful error message on #mount misuse 2012-07-10 16:17:02 -07:00
middleware_stack_test.rb Add the #unshift method to the middleware stack 2012-05-18 16:41:52 +10:00
mime_type_test.rb depreacte unused Mime::Type#verify_request? and Mime::Type.browser_generated_types 2012-09-24 17:24:18 -07:00
mount_test.rb Make sure :via works with mount 2012-08-20 10:25:23 -05:00
prefix_generation_test.rb test case to lock down the behavior of #7842 2012-11-04 15:15:29 +01:00
rack_cache_test.rb Dump and load rack-cache stuff. 2011-05-17 17:33:17 -04:00
rack_test.rb depreacte unused Mime::Type#verify_request? and Mime::Type.browser_generated_types 2012-09-24 17:24:18 -07:00
reloader_test.rb Use a BodyProxy instead of including a Module that responds to close. 2012-01-13 19:46:13 -02:00
request_id_test.rb Remove default match without specified method 2012-04-24 22:52:26 -05:00
request_test.rb Restore original remote_ip algorithm. 2013-01-02 15:26:27 -08:00
response_test.rb set default_headers to nil after use it to avoid order dependent tests 2012-09-08 14:51:22 -05:00
routing_assertions_test.rb Raise Assertion instead of RoutingError for routing assertion failures. 2012-05-20 06:21:32 -05:00
routing_test.rb Fixed issue where routes with globs caused constraints on that glob to 2012-12-04 14:42:09 +00:00
show_exceptions_test.rb Removed unused assigns from ActionView::Template::Error 2012-01-20 20:13:29 +04:00
ssl_test.rb Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
static_test.rb Revert "Invert precedence of content in ActionDispatch::Static" 2012-12-07 06:02:43 +00:00
test_request_test.rb Fix bug when Rails.application is defined but is nil. See #881 2012-05-21 15:24:18 -04:00
test_response_test.rb
uploaded_file_test.rb fixes the suite for uploaded files 2012-09-23 00:50:30 +02:00
url_generation_test.rb Add passing tests for generating URLs with nested SCRIPT_NAMEs 2012-05-07 14:53:57 -07:00