Sha256: 316f874f47703eac101d6bb2f5f67c5879947ea0dd5afd0dbfec01aaeb7f393c

Contents?: true

Size: 513 Bytes

Versions: 29

Compression:

Stored size: 513 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

29 entries across 29 versions & 3 rubygems

Version Path
sentry-raven-2.6.2 lib/raven/processor/post_data.rb
sentry-raven-2.6.1 lib/raven/processor/post_data.rb
sentry-raven-2.6.0 lib/raven/processor/post_data.rb
sentry-raven-2.5.3 lib/raven/processor/post_data.rb
sentry-raven-2.5.2 lib/raven/processor/post_data.rb
sentry-raven-2.5.1 lib/raven/processor/post_data.rb
sentry-raven-2.5.0 lib/raven/processor/post_data.rb
sentry-raven-2.4.0 lib/raven/processor/post_data.rb
sentry-raven-2.3.1 lib/raven/processor/post_data.rb