5
# Remove the old initialize_query method before redefining it.
6
remove_method :initialize_query
8
# Neuter CGI parameter parsing.
10
# Fix some strange request environments.
11
env_table['REQUEST_METHOD'] ||= 'GET'
13
# POST assumes missing Content-Type is application/x-www-form-urlencoded.
14
if env_table['CONTENT_TYPE'].blank? && env_table['REQUEST_METHOD'] == 'POST'
15
env_table['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'
18
@cookies = CGI::Cookie::parse(env_table['HTTP_COOKIE'] || env_table['COOKIE'])