lib/epics/client.rb in epics-1.7.2 vs lib/epics/client.rb in epics-1.8.0
- old
+ new
@@ -248,11 +248,11 @@
def connection
@connection ||= Faraday.new(headers: { 'Content-Type' => 'text/xml', user_agent: "EPICS v#{Epics::VERSION}"}, ssl: { verify: verify_ssl? }) do |faraday|
faraday.use Epics::XMLSIG, { client: self }
faraday.use Epics::ParseEbics, { client: self}
+ # faraday.use MyAdapter
# faraday.response :logger # log requests to STDOUT
- faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
end
end
def extract_keys
JSON.load(self.keys_content).each_with_object({}) do |(type, key), memo|