Sha256: 4992621fe5fff98cee786c0e93f19de74b179a591b907a36b839b778db322e1f
Contents?: true
Size: 276 Bytes
Versions: 59
Compression:
Stored size: 276 Bytes
Contents
module Katello class PreventJsonParsing def initialize(app, exclude) @app = app @exclude = exclude end def call(env) if @exclude && @exclude.call(env) env['CONTENT_TYPE'] = 'text/plain' end @app.call(env) end end end
Version data entries
59 entries across 59 versions & 1 rubygems