Changeset 4524
- Timestamp:
- 06/30/06 05:41:03 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb
r4522 r4524 37 37 @multipart = true 38 38 @params = read_multipart(boundary, content_length) 39 elsif content_type.blank? || content_type .downcase !~ %r{^application/x-www-form-urlencoded.*}39 elsif content_type.blank? || content_type !~ %r{application/x-www-form-urlencoded}i 40 40 read_params(method, content_length) 41 41 @params = {} trunk/actionpack/test/controller/raw_post_test.rb
r4388 r4524 12 12 def test_post_with_urlencoded_body 13 13 ENV['REQUEST_METHOD'] = 'POST' 14 ENV['CONTENT_TYPE'] = ' application/x-www-form-urlencoded'14 ENV['CONTENT_TYPE'] = ' apPlication/x-Www-form-urlEncoded; charset=utf-8' 15 15 assert_equal ['1'], cgi_params['a'] 16 16 assert_has_raw_post_data