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

Version Path
sentry-raven-3.1.2 lib/raven/processor/post_data.rb
sentry-raven-3.1.1 lib/raven/processor/post_data.rb
sentry-raven-3.1.0 lib/raven/processor/post_data.rb
sentry-raven-3.0.4 lib/raven/processor/post_data.rb
sentry-raven-3.0.3 lib/raven/processor/post_data.rb
sentry-raven-3.0.2 lib/raven/processor/post_data.rb
sentry-raven-3.0.1 lib/raven/processor/post_data.rb