diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-04 10:46:33 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-04 10:46:33 +0000 |
commit | ac44be3494a846468b6cefa21fa38ff953fc6de9 (patch) | |
tree | 83a10599d2bcca339bb48a3d8d9852f46f5a8e6e | |
parent | 8b2598bb644b9c06eea0ab4a107c4f94b31c99db (diff) | |
download | rails-ac44be3494a846468b6cefa21fa38ff953fc6de9.tar.gz rails-ac44be3494a846468b6cefa21fa38ff953fc6de9.tar.bz2 rails-ac44be3494a846468b6cefa21fa38ff953fc6de9.zip |
Treat all request types as upper-case so the switch will work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1283 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb index 2a39c8c753..11b36e0dd4 100644 --- a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +++ b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb @@ -27,7 +27,7 @@ class CGI #:nodoc: end def read_query_params - case env_table['REQUEST_METHOD'] + case env_table['REQUEST_METHOD'].to_s.upcase when 'CMD' read_from_cmdline when 'POST', 'PUT' @@ -36,7 +36,7 @@ class CGI #:nodoc: env_table['RAW_POST_DATA'] = content.split("&_").first.to_s.freeze # &_ is a fix for Safari Ajax postings that always append \000 else # when 'GET', 'HEAD', 'DELETE', 'OPTIONS' (defined?(MOD_RUBY) ? Apache::request.args : env_table['QUERY_STRING']) || '' - end + end end end # module QueryExtension end |