Skip to content

Commit

Permalink
Fix missing location
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Apr 17, 2023
1 parent 2620bf0 commit a6490d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mini_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a6490d1

Please sign in to comment.