MIME type application/javascript -> application/ecmascript
This commit is contained in:
parent
9fa3086d09
commit
e1079ee28f
|
@ -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:/)
|
||||
|
||||
|
|
Loading…
Reference in New Issue