Skip to content

Commit

Permalink
Upgrade notes on ssl_verify_mode (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehutzelman committed Jul 17, 2024
1 parent cdef05c commit 051b39b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ will send the following cookies:
"accept=application/json; some-cookie=foo; empty-cookie=; HttpOnly"
```

### ssl_verify_mode

The `ssl_verify_mode` option now expects an [OpenSSL::SSL::](https://ruby-doc.org/3.2.2/exts/openssl/OpenSSL/SSL.html) constant. Previously, HTTPI would allow the passing of a symbol like `:none` or `:peer`.

```ruby
ssl_verify_mode: :none
```

should now be written as:

```ruby
ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE
```

### adapters
Savon's adapters option now forwards adapter names and options to faraday.
Expand All @@ -61,4 +74,4 @@ client = Savon.client(
adapter: [:typhoeus, {connect_timeout: 10}]
)
```
Would create a savon client using the typhoeus adapter with a connect_timeout of 10 seconds.
Would create a savon client using the typhoeus adapter with a connect_timeout of 10 seconds.

0 comments on commit 051b39b

Please sign in to comment.