changed Rack endpoint in OAuth spec to return an enumerable body as per the Rack specification
This commit is contained in:
Родитель
fde9f6e37c
Коммит
5e2b5b3f4f
|
@ -15,7 +15,7 @@ def app
|
|||
provider :oauth, :twitter, 'abc', 'def', :site => 'https://api.twitter.com'
|
||||
provider :oauth, :linked_in, 'abc', 'def', :site => 'https://api.linkedin.com'
|
||||
end
|
||||
run lambda { |env| [200, {'Content-Type' => 'text/plain'}, Rack::Request.new(env).params.key?('auth').to_s] }
|
||||
run lambda { |env| [200, {'Content-Type' => 'text/plain'}, [Rack::Request.new(env).params.key?('auth').to_s]] }
|
||||
}.to_app
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче