Skip to content

Commit

Permalink
Default to SSL verify_none.
Browse files Browse the repository at this point in the history
This is what I expect to be the common case.
  • Loading branch information
tomlea committed Mar 9, 2012
1 parent 371e91e commit 8fc4b75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/geminabox_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def initialize(url)
@http_client = HTTPClient.new
@http_client.set_auth(url_for(:upload), @username, @password) if @username or @password
@http_client.www_auth.basic_auth.challenge(url_for(:upload)) # Workaround: https://github.com/nahi/httpclient/issues/63
@http_client.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

def extract_username_and_password_from_url!(url)
Expand Down

0 comments on commit 8fc4b75

Please sign in to comment.