diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-06-06 05:28:32 +0300 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2018-06-06 05:28:32 +0300 |
commit | 04e795d1d5aea36c6c5a73989c54c204d08e6ac5 (patch) | |
tree | 097ff57a3634017ef4af325adf2477a7c05bd060 /app/helpers | |
parent | 90a5bcc5c9bcf90b4eb17ace072212335b85ea29 (diff) |
[Rails5] Fix response headers sending through workhorse
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/workhorse_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/workhorse_helper.rb b/app/helpers/workhorse_helper.rb index 9f78b80c71d..a82271ce0ee 100644 --- a/app/helpers/workhorse_helper.rb +++ b/app/helpers/workhorse_helper.rb @@ -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 |