Send a better content type than application/octet-stream (#19131).

git-svn-id: http://svn.redmine.org/redmine/trunk@14034 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-02-19 17:46:24 +00:00
parent d750c9906e
commit 0b04de0a23
4 changed files with 14 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
test "GET /attachments/download/:id/:filename should return the attachment content" do
get '/attachments/download/7/archive.zip', {}, credentials('jsmith')
assert_response :success
assert_equal 'application/octet-stream', @response.content_type
assert_equal 'application/zip', @response.content_type
set_tmp_attachments_directory
end