summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-11-10 06:31:29 -0800
committerStan Hu <stanhu@gmail.com>2018-11-10 06:31:29 -0800
commite1079ee28ff5868d94cb503f27578e39ef82ee32 (patch)
tree78662618714ff09d9a003a457540021697b6eaaf
parent9fa3086d09efe4c72822e9a9a2aa2cc9afd6a046 (diff)
downloadgitlab-ce-sh-bump-mime-types.tar.gz
MIME type application/javascript -> application/ecmascriptsh-bump-mime-types
-rw-r--r--spec/controllers/concerns/send_file_upload_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/concerns/send_file_upload_spec.rb b/spec/controllers/concerns/send_file_upload_spec.rb
index 4f1f6bb31f3..379b2d6b935 100644
--- a/spec/controllers/concerns/send_file_upload_spec.rb
+++ b/spec/controllers/concerns/send_file_upload_spec.rb
@@ -76,7 +76,7 @@ describe SendFileUpload do
it 'sends a file with a custom type' do
headers = double
- expected_headers = %r(response-content-disposition=attachment%3Bfilename%3D%22test.js%22&response-content-type=application/javascript)
+ expected_headers = %r(response-content-disposition=attachment%3Bfilename%3D%22test.js%22&response-content-type=application/ecmascript)
expect(Gitlab::Workhorse).to receive(:send_url).with(expected_headers).and_call_original
expect(headers).to receive(:store).with(Gitlab::Workhorse::SEND_DATA_HEADER, /^send-url:/)