Sha256: e4451d1d93b2d92e6295fdcf98a0accf1e12b156df5d69fc651dbe72ffc81e65
Contents?: true
Size: 515 Bytes
Versions: 7
Compression:
Stored size: 515 Bytes
Contents
module Raven class Processor::PostData < Processor def process(data) process_if_symbol_keys(data) if data[:request] process_if_string_keys(data) if data["request"] data end private def process_if_symbol_keys(data) return unless data[:request][:method] == "POST" data[:request][:data] = STRING_MASK end def process_if_string_keys(data) return unless data["request"]["method"] == "POST" data["request"]["data"] = STRING_MASK end end end
Version data entries
7 entries across 7 versions & 1 rubygems