lib/katello/prevent_json_parsing.rb in katello-3.15.3.1 vs lib/katello/prevent_json_parsing.rb in katello-3.16.0.rc1

- old
+ new

@@ -4,10 +4,10 @@ @app = app @exclude = exclude end def call(env) - if @exclude && @exclude.call(env) + if @exclude&.call(env) env['CONTENT_TYPE'] = 'text/plain' end @app.call(env) end end