Module: Aikido::Zen::Sinks::Excon::RedirectFollowerExtensions

Defined in:
lib/aikido/zen/sinks/excon.rb

Instance Method Summary collapse

Instance Method Details

#response_call(data) ⇒ Object



84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/aikido/zen/sinks/excon.rb', line 84

def response_call(data)
  if (response = data[:response])
    Aikido::Zen::Scanners::SSRFScanner.track_redirects(
      request: Extensions.build_request(data, {}),
      response: Aikido::Zen::Scanners::SSRFScanner::Response.new(
        status: response[:status],
        headers: response[:headers]
      )
    )
  end

  super
end