use Travis.config.github.ssl when fetching an oauth access token

This commit is contained in:
Sven Fuchs 2013-08-30 17:11:08 +02:00
parent 1080bee23b
commit f3a2cc2f40

View File

@ -276,7 +276,7 @@ class Travis::Api::App
end
def get_token(endoint, values)
response = Faraday.post(endoint, values)
response = Faraday.new(ssl: Travis.config.github.ssl).post(endoint, values)
parameters = Addressable::URI.form_unencode(response.body)
token_info = parameters.assoc("access_token")
halt 401, 'could not resolve github token' unless token_info