lib/pact/consumer/server.rb in pact-mock_service-2.8.0 vs lib/pact/consumer/server.rb in pact-mock_service-2.8.1

- old
+ new

@@ -84,10 +84,10 @@ end http.get('/__identify__') end def webrick_opts - opts = {Host: '0.0.0.0', Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0)} + opts = { Port: port.nil? ? 0 : port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0) } opts.merge!({ :SSLCertificate => OpenSSL::X509::Certificate.new(File.open(options[:sslcert]).read) }) if options[:sslcert] opts.merge!({ :SSLPrivateKey => OpenSSL::PKey::RSA.new(File.open(options[:sslkey]).read) }) if options[:sslkey] opts.merge!(ssl_opts) if options[:ssl]