From a6490d141647ba183a1c2078f223a4f8ecaa5797 Mon Sep 17 00:00:00 2001 From: Nate Berkopec Date: Tue, 18 Apr 2023 08:05:20 +0900 Subject: [PATCH] Fix missing location --- lib/mini_profiler.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mini_profiler.rb b/lib/mini_profiler.rb index f4e1fe5f..77e16d35 100644 --- a/lib/mini_profiler.rb +++ b/lib/mini_profiler.rb @@ -228,7 +228,6 @@ def call(env) MiniProfiler.deauthorize_request if @config.authorization_mode == :allow_authorized status = headers = body = nil - query_string = env['QUERY_STRING'] path = env['PATH_INFO'].sub('//', '/') # Someone (e.g. Rails engine) could change the SCRIPT_NAME so we save it @@ -359,7 +358,7 @@ def call(env) # Prevent response body from being compressed env['HTTP_ACCEPT_ENCODING'] = 'identity' if config.suppress_encoding - if matches_action?('flamegraph') || matches_action?('async-flamegraph') || env['HTTP_REFERER'] =~ /pp=async-flamegraph/ + if matches_action?('flamegraph', env) || matches_action?('async-flamegraph', env) || env['HTTP_REFERER'] =~ /pp=async-flamegraph/ if defined?(StackProf) && StackProf.respond_to?(:run) # do not sully our profile with mini profiler timings current.measure = false