BigW Consortium Gitlab

components_helper.rb 225 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module ComponentsHelper
  def gitlab_workhorse_version
    if request.headers['Gitlab-Workhorse'].present?
      request.headers['Gitlab-Workhorse'].split('-').first
    else
      Gitlab::Workhorse.version
    end
  end
end