Skip to content

Commit 5da1d15

Browse files
author
Andrew Turner
committed
Fixed checking for SSL
1 parent 093ccee commit 5da1d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

badgerSSL.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize(*args)
3131
def login( username, password )
3232
uri = URI.parse($finder_path)
3333
res = Net::HTTP.new(uri.host, uri.port)
34-
res.use_ssl = (uri.scheme= 'https')
34+
res.use_ssl = (uri.scheme == 'https')
3535
post = Net::HTTP::Post.new("/sessions")
3636
post.set_form_data( {'login' => username, 'password' => password} )
3737
# post.verify_mode = OpenSSL::SSL::VERIFY_NONE

0 commit comments

Comments
 (0)