Sha256: 2e1f1124d36a106bb01a2347bccf11cb5fbd6081874376b0863308c7a5dd629d

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

module VirusScanService
  module BuildHttp
    def build_http
      if uri.scheme == 'https'
        http = Net::HTTP.new(uri.host, uri.port)
        http.use_ssl = true
        http.verify_mode = OpenSSL::SSL::VERIFY_NONE
        http
      else
        Net::HTTP.new(uri.host, uri.port)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
virus_scan_service-0.2.1 lib/virus_scan_service/build_http.rb
virus_scan_service-0.2.0 lib/virus_scan_service/build_http.rb
virus_scan_service-0.1.0 lib/virus_scan_service/build_http.rb
virus_scan_service-0.0.8 lib/virus_scan_service/build_http.rb