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
Armand du Plessis c62abed8ca Collapsed dual checks (one for content headers and one for content) into a single check.
Rails includes a single character body to a head(:no_content) response to work around an old Safari bug where headers were ignored if no body sent.

This patch brings the behavior slightly closer to spec if :no_content/204 is explicity requested via a head only response.

Status comparison done on symbolic and numeric values

Not returning any content when responding with head and limited to a status code that explicitly states no content will be returned - 100..199, 204, 205, 304.
2012-08-02 16:01:08 -07:00
..
abstract_controller add lazy look up in abstract controller's translate method 2012-07-18 10:33:14 +03:00
action_controller Collapsed dual checks (one for content headers and one for content) into a single check. 2012-08-02 16:01:08 -07:00
action_dispatch load active_support/core_ext/module/delegation in active_support/rails 2012-08-02 21:59:23 +02:00
action_pack
action_view load active_support/deprecation in active_support/rails 2012-08-02 21:59:23 +02:00
abstract_controller.rb load active_support/core_ext/module/delegation in active_support/rails 2012-08-02 21:59:23 +02:00
action_controller.rb load active_support/core_ext/module/delegation in active_support/rails 2012-08-02 21:59:23 +02:00
action_dispatch.rb load active_support/dependencies/autoload in active_support/rails 2012-08-02 21:59:23 +02:00
action_pack.rb
action_view.rb defines a private require-hub active_support/rails 2012-08-02 21:59:22 +02:00