[Rails5] Fix response headers sending through workhorse
This commit is contained in:
parent
90a5bcc5c9
commit
04e795d1d5
|
@ -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 New Issue