lib/mini_profiler/actions.rb in rack-mini-profiler-3.2.0 vs lib/mini_profiler/actions.rb in rack-mini-profiler-3.2.1
- old
+ new
@@ -131,10 +131,10 @@
return client_settings.handle_cookie(
text_result(message, status: 500, headers: headers)
)
end
- query_params = Rack::Utils.parse_nested_query(query_string)
+ query_params = Rack::Utils.parse_nested_query(env['QUERY_STRING'])
options = {
ignore_files: query_params['memory_profiler_ignore_files'],
allow_files: query_params['memory_profiler_allow_files'],
}
options[:top] = Integer(query_params['memory_profiler_top']) if query_params.key?('memory_profiler_top')