Skip to content

Instantly share code, notes, and snippets.

@julik
Created May 9, 2014 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julik/e828edef296a9199e8cd to your computer and use it in GitHub Desktop.
Save julik/e828edef296a9199e8cd to your computer and use it in GitHub Desktop.
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 '/'
@julik
Copy link
Author

julik commented May 9, 2014

Faraday::Error: CertificatePinning is not registered on Faraday::Adapter

method lookup_middleware in faraday.rb at line 189
method use_symbol in rack_builder.rb at line 203
method adapter in rack_builder.rb at line 100
method block in

in faraday_why.rb at line 12
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment