Class: RspecApiDocumentation::OAuth2MACClient::ProxyApp

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec_api_documentation/oauth2_mac_client.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



58
59
60
61
62
# File 'lib/rspec_api_documentation/oauth2_mac_client.rb', line 58

def call(env)
  env["QUERY_STRING"] = query_string_hack(env)
  client.last_request = Struct.new(:env, :content_type).new(env, env["CONTENT_TYPE"])
  app.call(env.merge("SCRIPT_NAME" => ""))
end