lib/honeybadger/util/request_hash.rb in honeybadger-3.0.0 vs lib/honeybadger/util/request_hash.rb in honeybadger-3.0.1

- old
+ new

@@ -60,9 +60,10 @@ { error: "Failed to access session data -- #{e}" } end def self.extract_cgi_data(request) request.env.each_with_object({}) do |(k,v), env| + next unless k.is_a?(String) next unless k.start_with?(HTTP_HEADER_PREFIX) || CGI_WHITELIST.include?(k) env[k] = v end end end