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:
Rémy Coutable 2018-06-06 07:39:56 +00:00
commit e0ca6ccbc9

View file

@ -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