Created
May 9, 2014 15:24
-
-
Save julik/e828edef296a9199e8cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
class CertificatePinning < Faraday::Adapter::NetHttp | |
def configure_ssl(http, ssl) | |
super # configure MOAR SSL } | |
end | |
end | |
client = Faraday.new(:url => 'https://github.com') do |f| | |
f.request :url_encoded | |
f.response :logger | |
f.adapter CertificatePinning | |
end | |
client.get '/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Faraday::Error: CertificatePinning is not registered on Faraday::Adapter
method lookup_middleware in faraday.rb at line 189
in faraday_why.rb at line 12method use_symbol in rack_builder.rb at line 203
method adapter in rack_builder.rb at line 100
method block in
method initialize in connection.rb at line 91
method new in faraday.rb at line 70
method new in faraday.rb at line 70
method in faraday_why.rb at line 9