aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/cgi_ext/query_extension.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-01-27 18:17:39 -0600
committerJoshua Peek <josh@joshpeek.com>2009-01-27 18:17:39 -0600
commita0f2b1d95d3785de92ae271fd7ea23e91c0cadc6 (patch)
treee125027e317889e6402dac147e03fc112c129aec /actionpack/lib/action_controller/cgi_ext/query_extension.rb
parenteb9af20b7cc0e374277cf330bdd404f9daab28ec (diff)
downloadrails-a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6.tar.gz
rails-a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6.tar.bz2
rails-a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6.zip
Reorganize ActionController folder structure
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/query_extension.rb')
-rw-r--r--actionpack/lib/action_controller/cgi_ext/query_extension.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/query_extension.rb b/actionpack/lib/action_controller/cgi_ext/query_extension.rb
deleted file mode 100644
index 9620fd2873..0000000000
--- a/actionpack/lib/action_controller/cgi_ext/query_extension.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'cgi'
-
-class CGI #:nodoc:
- module QueryExtension
- # Remove the old initialize_query method before redefining it.
- remove_method :initialize_query
-
- # Neuter CGI parameter parsing.
- def initialize_query
- # Fix some strange request environments.
- env_table['REQUEST_METHOD'] ||= 'GET'
-
- # POST assumes missing Content-Type is application/x-www-form-urlencoded.
- if env_table['CONTENT_TYPE'].blank? && env_table['REQUEST_METHOD'] == 'POST'
- env_table['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'
- end
-
- @cookies = CGI::Cookie::parse(env_table['HTTP_COOKIE'] || env_table['COOKIE'])
- @params = {}
- end
- end
-end