Skip to content
Snippets Groups Projects
Commit 1c13cea7 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch '20452-remove-require-from-request_profiler-initializer' into 'master'

Don't require lib/gitlab/request_profiler/middleware.rb in config/initializers/request_profiler.rb

Closes #20452

See merge request !8927
parents 19a39aa7 6dcfc400
No related branches found
No related tags found
No related merge requests found
---
title: Don't require lib/gitlab/request_profiler/middleware.rb in config/initializers/request_profiler.rb
merge_request:
author:
require 'gitlab/request_profiler/middleware'
Rails.application.configure do |config|
config.middleware.use(Gitlab::RequestProfiler::Middleware)
end
require 'ruby-prof'
require_dependency 'gitlab/request_profiler'
 
module Gitlab
module RequestProfiler
Loading
Loading
@@ -20,7 +19,7 @@ module Gitlab
header_token = env['HTTP_X_PROFILE_TOKEN']
return unless header_token.present?
 
profile_token = RequestProfiler.profile_token
profile_token = Gitlab::RequestProfiler.profile_token
return unless profile_token.present?
 
header_token == profile_token
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment