Sha256: 44daaf7a99f3731f58705e740134a6eee121906c2a194f59974ad80dab8dbff5

Contents?: true

Size: 403 Bytes

Versions: 10

Compression:

Stored size: 403 Bytes

Contents

module Raven
  class Processor::Cookies < Processor
    def process(data)
      if data[:request]
        # Remove possibly sensitive cookies
        data[:request][:cookies] = STRING_MASK if data[:request][:cookies]

        if data[:request][:headers] && data[:request][:headers]["Cookie"]
          data[:request][:headers]["Cookie"] = STRING_MASK
        end
      end

      data
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sentry-raven-2.3.0 lib/raven/processor/cookies.rb
sentry-raven-2.2.0 lib/raven/processor/cookies.rb
sentry-raven-2.1.4 lib/raven/processor/cookies.rb
sentry-raven-2.1.3 lib/raven/processor/cookies.rb
sentry-raven-2.1.2 lib/raven/processor/cookies.rb
sentry-raven-2.1.1 lib/raven/processor/cookies.rb
sentry-raven-2.1.0 lib/raven/processor/cookies.rb
sentry-raven-2.0.2 lib/raven/processor/cookies.rb
sentry-raven-2.0.1 lib/raven/processor/cookies.rb
sentry-raven-2.0.0 lib/raven/processor/cookies.rb