Sha256: 9e87abe2cb9c31cbc0d5f852c8531c6d28d1156c26fd310f6cb5cfcbbf78868a
Contents?: true
Size: 475 Bytes
Versions: 4
Compression:
Stored size: 475 Bytes
Contents
module ActiveMerchant #:nodoc: module PostsData #:nodoc: def included?(base) base.class_eval do attr_accessor :ssl_strict end end def ssl_post(url, data, headers = {}) uri = URI.parse(url) http = Net::HTTP.new(uri.host, uri.port) http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @ssl_strict http.use_ssl = true http.post(uri.path, data, headers).body end end end
Version data entries
4 entries across 4 versions & 1 rubygems