gitlab-org--gitlab-foss/app/helpers/components_helper.rb
Chris Wright 16b0723a7c
Use the Gitlab Workhorse HTTP header in the admin dashboard
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-07 16:15:43 +01:00

9 lines
225 B
Ruby

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