[Rails5] Fix response headers sending through workhorse

This commit is contained in:
blackst0ne 2018-06-06 13:28:32 +11:00
parent 90a5bcc5c9
commit 04e795d1d5
1 changed files with 1 additions and 1 deletions

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