aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/flash.rb
diff options
context:
space:
mode:
authorArmand du Plessis <adp@bank.io>2012-08-02 15:58:45 -0700
committerArmand du Plessis <adp@bank.io>2012-08-02 16:01:08 -0700
commitc62abed8ca480216b3b6386c95935bfc24683216 (patch)
tree6c5d0c2cee172258767789cb415a64a70ef96fb2 /actionpack/lib/action_controller/metal/flash.rb
parent6e523766d8a64bf18ac6d0e261c6bd962bc6c0a9 (diff)
downloadrails-c62abed8ca480216b3b6386c95935bfc24683216.tar.gz
rails-c62abed8ca480216b3b6386c95935bfc24683216.tar.bz2
rails-c62abed8ca480216b3b6386c95935bfc24683216.zip
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.
Diffstat (limited to 'actionpack/lib/action_controller/metal/flash.rb')
0 files changed, 0 insertions, 0 deletions