Skip to content
Snippets Groups Projects
Commit 159a5db6 authored by Anthony Martin's avatar Anthony Martin
Browse files

allow ssl/non-ssl

parent c7e1a75d
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ module Steem
def http
@http ||= Net::HTTP.new(uri.host, uri.port).tap do |http|
http.use_ssl = true
http.use_ssl = true if uri.to_s =~ /^https/i
http.keep_alive_timeout = 2 # seconds
# WARNING This method opens a serious security hole. Never use this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment