aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/middleware
Commit message (Collapse)AuthorAgeFilesLines
* Failing test for #6034Piotr Sarnacki2012-04-301-0/+20
|
* Remove default match without specified methodJose and Yehuda2012-04-242-2/+2
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* Freeze the middleware stack after it's builtJeremy Kemper2012-04-201-17/+18
| | | | | | So apps that accidentally add middlewares later aren't unwittingly dumping them in a black hole. Closes #5911
* Handle files from ActionDispatch::Static with Rack::Sendfile (fixes #5225)Piotr Sarnacki2012-03-031-0/+13
| | | | | | | | This makes rails behave properly when you serve static assets and you have X-Sendfile headers enabled. Nevertheless in most cases you should not rely on that and serve static assets with a webserver like Apache or Nginx (as you already have it in place anyway if you use X-Sendfile)
* config.force_ssl should mark the session as secure.José Valim2012-01-131-0/+30
|
* convert railties to use AS::TestCaseAaron Patterson2012-01-056-6/+6
|
* don't encode an UTF-8 encoded templateXu Pan2011-12-201-1/+2
|
* Show detailed exceptions no longer returns true if the request is local in ↵José Valim2011-12-161-0/+1
| | | | production.
* Improve the specs on exceptions app.José Valim2011-12-161-1/+1
|
* Allow a custom exceptions app to set.José Valim2011-12-161-0/+14
|
* Fix diagnostics page for routing errors.José Valim2011-12-151-2/+13
|
* Add ActiveSupport::Cache::NullStore to expose caching interface without ↵Brian Durand2011-12-121-2/+2
| | | | actually caching for development and test environments.
* Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-011-1/+1
|
* Allow rescue responses to be configured through a railtie.José Valim2011-12-011-0/+29
|
* fix exception page when template contains utf-8 and parameters contain utf-8lest2011-11-301-11/+30
|
* configuration option to always write cookielest2011-11-231-0/+47
|
* Test demonstrating #3053: If-Modified-Since gets swallowed up by rack-cache.Brendan Ribera2011-10-031-0/+14
|
* x_sendfile_header now defaults to nil and production.rb env file doesn'tSantiago Pastorino2011-08-071-1/+2
| | | | | | | set a particular value for it. This allows servers to set it through X-Sendfile-Type, read https://github.com/rack/rack/blob/master/lib/rack/sendfile.rb for more info. Anyways you can force this value in your production.rb
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-065-0/+20
|
* Replace references to ActiveSupport::SecureRandom with just SecureRandom, ↵Jon Leighton2011-05-231-2/+2
| | | | and require 'securerandom' from the stdlib when active support is required.
* Always use ActionDispatch::ShowExceptions middleware [#6462 state:resolved]Prem Sichanugrist2011-02-251-0/+37
| | | | This will make sure the application will raise `ActionController::RoutingError` in case "X-Cascade: pass" header was set, usually when there's no route match.
* Fix a routing test. Reorganize middleware tests.José Valim2010-10-024-12/+145
|
* Only add Rack::Cache to the middleware stack if ↵Sparky2010-09-151-1/+15
| | | | config.action_controller.perform_caching is set.
* Add tests for Rack::CacheCarlhuda2010-09-131-0/+148