From 0b04de0a23e2b9ce991cb06d2a1788ef0cc834cf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 19 Feb 2015 17:46:24 +0000 Subject: 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 --- test/integration/api_test/attachments_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/integration') diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb index d4b483527..0f7e6ebdb 100644 --- a/test/integration/api_test/attachments_test.rb +++ b/test/integration/api_test/attachments_test.rb @@ -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 -- cgit v1.2.3