diff options
author | Stan Hu <stanhu@gmail.com> | 2018-11-10 06:31:29 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-11-10 06:31:29 -0800 |
commit | e1079ee28ff5868d94cb503f27578e39ef82ee32 (patch) | |
tree | 78662618714ff09d9a003a457540021697b6eaaf | |
parent | 9fa3086d09efe4c72822e9a9a2aa2cc9afd6a046 (diff) | |
download | gitlab-ce-e1079ee28ff5868d94cb503f27578e39ef82ee32.tar.gz |
MIME type application/javascript -> application/ecmascriptsh-bump-mime-types
-rw-r--r-- | spec/controllers/concerns/send_file_upload_spec.rb | 2 |
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:/) |