Merge branch 'blackst0ne-rails5-fix-specs-with-text-plain-charset-utf-8' into 'master'
Resolve "[Rails5] Fix specs with "text/plain; charset=utf-8"" Closes #47378 See merge request gitlab-org/gitlab-ce!19462
This commit is contained in:
commit
e0ca6ccbc9
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module WorkhorseHelper
|
|||
headers.store(*Gitlab::Workhorse.send_git_blob(repository, blob))
|
||||
headers['Content-Disposition'] = 'inline'
|
||||
headers['Content-Type'] = safe_content_type(blob)
|
||||
head :ok # 'render nothing: true' messes up the Content-Type
|
||||
render plain: ""
|
||||
end
|
||||
|
||||
# Send a Git diff through Workhorse
|
||||
|
|
Loading…
Reference in a new issue