Skip to content

Commit

Permalink
Merge pull request savonrb#89 from savonrb/ssl_version_be_string
Browse files Browse the repository at this point in the history
Use ssl_version as string on httpclient adapter
  • Loading branch information
rogerleite committed Mar 29, 2013
2 parents 314fb99 + 615b062 commit 1a876f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/httpi/adapter/httpclient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def setup_ssl_auth
@client.ssl_config.client_key = ssl.cert_key

@client.ssl_config.verify_mode = ssl.openssl_verify_mode
@client.ssl_config.ssl_version = ssl.ssl_version if ssl.ssl_version
@client.ssl_config.ssl_version = ssl.ssl_version.to_s if ssl.ssl_version
end

def respond_with(response)
Expand Down
2 changes: 1 addition & 1 deletion spec/httpi/adapter/httpclient_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

it 'should set the ssl_version if specified' do
request.auth.ssl.ssl_version = :SSLv3
ssl_config.expects(:ssl_version=).with(request.auth.ssl.ssl_version)
ssl_config.expects(:ssl_version=).with('SSLv3')

adapter.request(:get)
end
Expand Down

0 comments on commit 1a876f8

Please sign in to comment.