Sha256: fe4b47630407dab4255239edfcc857054a94a658aad53d823b443207040e3f73

Contents?: true

Size: 280 Bytes

Versions: 14

Compression:

Stored size: 280 Bytes

Contents

require 'faraday'

module AirbrakeAPI
  module Middleware
    class ScrubResponse < Faraday::Response::Middleware

      def parse(body)
        body.gsub!(/<__utmz>.*?<\/__utmz>/m,'')
        body.gsub!(/<[0-9]+.*?>.*?<\/[0-9]+.*?>/m,'')
        body
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
airbrake-api-4.6.1 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.6.0 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.5.1 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.5.0 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.4.0 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.3.0 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.2.2 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.2.1 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.2.0 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.1.3 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.1.2 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.1.1 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.1.0 lib/airbrake-api/middleware/scrub_response.rb
airbrake-api-4.0.0 lib/airbrake-api/middleware/scrub_response.rb