lib/honeybadger/util/request_hash.rb in honeybadger-4.12.1 vs lib/honeybadger/util/request_hash.rb in honeybadger-4.12.2
- old
+ new
@@ -26,10 +26,10 @@
def self.from_env(env)
return {} unless defined?(::Rack::Request)
return {} unless env
- hash, request = {}, ::Rack::Request.new(env)
+ hash, request = {}, ::Rack::Request.new(env.dup)
hash[:url] = extract_url(request)
hash[:params] = extract_params(request)
hash[:component] = hash[:params]['controller']
hash[:action] = hash[:params]['action']