Class: Common::Client::Middleware::Request::RemoveCookies

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/common/client/middleware/request/remove_cookies.rb

Overview

must be added right before http_client adapter

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
# File 'lib/common/client/middleware/request/remove_cookies.rb', line 9

def call(env)
  client = @app.build_connection(env)
  client.cookie_manager = nil
  @app.call(env)
end