lib/liveqa/plugins/rack/middleware.rb in liveqa-1.8.3 vs lib/liveqa/plugins/rack/middleware.rb in liveqa-1.9.0
- old
+ new
@@ -88,20 +88,20 @@
return url if params.empty?
uri.merge(
"?#{::Rack::Utils.build_query(params)}"
).to_s
- rescue
+ rescue StandardError => _e
''
end
def obfuscation_get_params(request, type)
Util.deep_obfuscate_value(
request.send(type),
LiveQA.configurations.obfuscated_fields
)
- rescue
+ rescue StandardError => _e
{}
end
# determines if a request is HTTPS based on headers and env variabled
def https_request?(env)
@@ -123,10 +123,10 @@
Util.deep_obfuscate_value(
headers,
LiveQA.configurations.obfuscated_fields
)
- rescue
+ rescue StandardError => _e
{}
end
end
end