diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-11-23 23:24:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-11-23 23:24:47 +0000 |
commit | efd0bdd9eaf66a361b01739522794ec0c9453d15 (patch) | |
tree | 10244d7ddfbb6718d751066c4bf8ea6cb1565e75 /actionpack/CHANGELOG | |
parent | f15d52fc4ab921f010325adfd543c0a0c29913d2 (diff) | |
download | rails-efd0bdd9eaf66a361b01739522794ec0c9453d15.tar.gz rails-efd0bdd9eaf66a361b01739522794ec0c9453d15.tar.bz2 rails-efd0bdd9eaf66a361b01739522794ec0c9453d15.zip |
* Added GET-masquarading for HEAD, so request.method will return :get even for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you dont even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 39bfc0fb06..5602d315f6 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added GET-masquarading for HEAD, so request.method will return :get even for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you don't even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH] + * Update Routing to complain when :controller is not specified by a route. Closes #6669. [Nicholas Seckar] * Ensure render_to_string cleans up after itself when an exception is raised. #6658 [rsanheim] |