0c43170630
If you upload a file with a .js extension, Rails' cross-origin JavaScript protection will prevent a user from downloading the file with a 422 error. Setting the content-type to `text/plain` will allow the user to download the file as a plaintext file. Closes #45826 |
||
---|---|---|
.. | ||
checks_collaboration_spec.rb | ||
continue_params_spec.rb | ||
controller_with_cross_project_access_check_spec.rb | ||
group_tree_spec.rb | ||
internal_redirect_spec.rb | ||
issuable_collections_spec.rb | ||
lfs_request_spec.rb | ||
send_file_upload_spec.rb |