gitlab-org--gitlab-foss/app/helpers/components_helper.rb
2018-09-06 17:33:46 -07:00

11 lines
256 B
Ruby

# frozen_string_literal: true
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