Changeset 7212
- Timestamp:
- 07/24/07 01:20:18 (1 year ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/request.rb (modified) (1 diff)
- trunk/actionpack/test/controller/request_test.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r7197 r7212 1 1 *SVN* 2 3 * Fixed that file.content_type for uploaded files would include a trailing \r #9053 [bgreenlee] 2 4 3 5 * url_for now accepts a series of symbols representing the namespace of the record [Josh Knowles] trunk/actionpack/lib/action_controller/request.rb
r7126 r7212 543 543 end 544 544 545 /Content-Type: ( .*)/ni.match(head)545 /Content-Type: ([^\r]*)/ni.match(head) 546 546 content_type = ($1 or "") 547 547 trunk/actionpack/test/controller/request_test.rb
r7126 r7212 668 668 assert_kind_of StringIO, file 669 669 assert_equal 'file.txt', file.original_filename 670 assert_equal "text/plain \r", file.content_type670 assert_equal "text/plain", file.content_type 671 671 assert_equal 'contents', file.read 672 672 end … … 680 680 assert_kind_of Tempfile, file 681 681 assert_equal 'file.txt', file.original_filename 682 assert_equal "text/plain \r", file.content_type682 assert_equal "text/plain", file.content_type 683 683 assert ('a' * 20480) == file.read 684 684 end … … 698 698 assert_kind_of StringIO, file 699 699 assert_equal 'flowers.jpg', file.original_filename 700 assert_equal "image/jpeg \r", file.content_type700 assert_equal "image/jpeg", file.content_type 701 701 assert_equal 19512, file.size 702 702 #assert_equal File.read(File.dirname(__FILE__) + '/../../../activerecord/test/fixtures/flowers.jpg'), file.read