MIME-Types for WEBrick

This commit is contained in:
Jacques Distler 2007-10-08 04:16:31 +00:00
parent ab7f429a10
commit 5cbdccec2a
2 changed files with 14 additions and 3 deletions

View file

@ -87,8 +87,6 @@ class FileControllerTest < Test::Unit::TestCase
# User uploads the picture
picture = File.read("#{RAILS_ROOT}/test/fixtures/rails.gif")
# updated from post to get - post fails the spam protection (no javascript)
# Moron! If substituting GET for POST actually works, you
# have much, much bigger problems.
r = get :file, :web => 'wiki1',
:file => {:file_name => 'rails-e2e.gif',
:content => StringIO.new(picture),