Sha256: 29368ed729afb0f97b19ac14fa58c264ba77bb4080d1d896a9c244abd459b288
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
class Brut::FrontEnd::Handlers::CspReportingHandler < Brut::FrontEnd::Handler def handle(body:) begin parsed = JSON.parse(body.read) SemanticLogger["brut:__brut/csp-reporting"].info(parsed) rescue => ex SemanticLogger["brut:__brut/locale"].warn("Got #{ex} from /__brut/locale instead of a parseable JSON object") end http_status(200) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brut-0.0.1 | lib/brut/front_end/handlers/csp_reporting_handler.rb |