aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/middleware_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move content length to the server, this brings the same behavior as in rack 1.2.José Valim2011-05-231-7/+6
|
* Temporarily ship with ContentLength middleware.José Valim2011-05-201-3/+3
|
* Use Rack::ContentLength.José Valim2011-05-191-5/+6
|
* Fix tests to reflect IdentityMap no longer defaultDavid Lee2011-05-101-1/+1
| | | | Broke in 0e1dcae1857db4f6721561caff38d8be748d0b40
* Logs should show overridden method; Issue 426David Lee2011-05-071-2/+2
|
* s/with/when/Xavier Noria2011-03-271-1/+1
|
* Add `config.force_ssl` configuration which will load `Rack::SSL` middleware ↵Prem Sichanugrist2011-03-271-0/+6
| | | | | | | | if set to true This will allow user to be able to force all requests to be under HTTPS protocol. This commit was a request from DHH. Special thanks to Josh Peek as well for making `Rack::SSL`.
* Always use ActionDispatch::ShowExceptions middleware [#6462 state:resolved]Prem Sichanugrist2011-02-251-2/+2
| | | | 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.
* We really don't care about IM middleware order, the important is that it ↵Emilio Tagua2011-02-181-1/+1
| | | | gets included.
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-201-0/+7
|\ | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * Introduce ActionDispatch::ReloaderJohn Firebaugh2010-12-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Based on the implementation on the 2-3-stable branch, patches by Hongli Lai <hongli@phusion.nl>, and helpful suggestions from José Valim. Hongli Lai's patches included locking around the request cycle; this is now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/). [#2873] Signed-off-by: José Valim <jose.valim@gmail.com>
* | Don't load IdentityMap middleware if not enabled. Simplify middleware.Emilio Tagua2010-11-191-0/+5
| |
* | Use IdentityMap middleware to flush map on each request.Emilio Tagua2010-11-191-0/+2
|/
* Move ETag and ConditionalGet logic from AD::Response to the middleware stack.José Valim2010-10-031-21/+43
|
* Fix a routing test. Reorganize middleware tests.José Valim2010-10-021-91/+0
|
* Only add Rack::Cache to the middleware stack if ↵Sparky2010-09-151-4/+31
| | | | config.action_controller.perform_caching is set.
* First pass at Rack::Cachewycats2010-09-131-4/+5
|
* Revert "Just add connection management middleware if running in a concurrent ↵Jeremy Kemper2010-08-201-0/+1
| | | | | | environment." This reverts commit 6b29dc876fe185881d46731c3ae170478a3828fe.
* Fix middleware testwycats2010-07-271-1/+2
|
* application generation: --skip-testunit and --skip-activerecord renamed to ↵Xavier Noria2010-07-251-1/+1
| | | | | | | | --skip-test-unit and --skip-active-record respectively Reason is their proper spellings are "Test::Unit" and "Active Record". Option names and descriptions have been revised, as well as some method names and minor details here and there.
* Just add connection management middleware if running in a concurrent ↵José Valim2010-07-121-1/+0
| | | | environment.
* adding middleware test for RAILS_CACHENeeraj Singh2010-06-241-0/+11
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensure show exceptions middleware properly filters backtrace before logging.José Valim2010-06-091-0/+20
|
* Add delete to middleware stack proxy.José Valim2010-06-071-0/+6
|
* Remove the laziness from the middleware stack.José Valim2010-05-291-1/+1
|
* Removing Metal from Rails 3. wycats2010-05-291-6/+0
| | | | | | | | | | | | | | | | | | | | If you have existing Metals, you have a few options: * if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go * if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself. For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack. Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed.
* Simplify cookie_store by simply relying on cookies.signed.José Valim2010-05-181-1/+4
|
* ActiveRecord middlewares should be inserted before AD::Cascade [#4493 ↵José Valim2010-04-291-3/+3
| | | | state:resolved].
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-291-0/+1
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Refactor tests by moving all middleware tests to the same place.José Valim2010-04-261-0/+93
|
* Add a test which ensures action_dispatch.show_exceptions is properly disabled.José Valim2010-04-021-0/+6
|
* Fix all the broken tests due to the AC configuration refactorCarl Lerche2010-03-031-0/+1
|
* Woops, forgot to actually add active_support/core_ext/file/path.rbCarlhuda2010-02-231-0/+1
|
* Deprecate AC configuration values which were moved to Rack.José Valim2010-02-011-1/+1
|
* Move Rails::Rack::Metal to Rails::Application::Metal and just add cascade if ↵José Valim2010-01-261-1/+6
| | | | any metal was declared.
* Delegate App calls to instanceJoshua Peek2010-01-221-1/+1
|
* Default to sync instrumentation.José Valim2010-01-211-1/+1
|
* Add notifications to default middleware stack and update subscriber tests.José Valim2010-01-171-0/+1
|
* Cookies middlewareJoshua Peek2010-01-161-0/+1
|
* Move Flash into middlewareJoshua Peek2010-01-151-0/+1
|
* Make HEAD method masquerade as GET so requests are routed correctlyJoshua Peek2010-01-151-1/+1
|
* Cleanup junk metal and revise APIJoshua Peek2010-01-101-0/+1
| | | | | API Change: Returning a "X-Cascade: pass" header triggers the cascade instead of a 404 response.
* Trash string coercion rack hacksJoshua Peek2010-01-041-1/+0
|
* Default middleware stack needs to be available at configuration timeJoshua Peek2010-01-041-0/+12
|
* Middleware configuration testsJoshua Peek2010-01-041-0/+67