Skip to content

Conversation

@mrpasquini
Copy link
Contributor

ssl_version is deprecated and only provided for backwards compatibility. Documentation says to use min_version= and max_version= instead.

This PR adds support for these configuration options for the adapters that support them. HTTPI::NotImplementedError are raised for Curb and HttpClient that do not support these configuration options.

A new static HTTPI::SSL::MIN_MAX_VERSIONS is introduced to list the supported verions for min/max_verions. This is different than HTTPI::SSL::SSL_VERSIONS as the ssl_version value would be TLSv1_2 where the min/max_version value is TLS1_2

@coveralls
Copy link

coveralls commented Jul 7, 2020

Coverage Status

Coverage decreased (-0.5%) to 96.601% when pulling 3183c55 on mrpasquini:ssl_min_max_version into 2fbd6b1 on savonrb:master.

@mrpasquini mrpasquini force-pushed the ssl_min_max_version branch from 260d8d2 to 3183c55 Compare July 7, 2020 13:18
Copy link
Member

@rogerleite rogerleite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mrpasquini
Thanks for the PR. I didn't know about this deprecation.

I think the PR is good, I just put some comments to improve usability.

@mrpasquini mrpasquini force-pushed the ssl_min_max_version branch from 3183c55 to a4d906c Compare July 7, 2020 15:35
@mrpasquini
Copy link
Contributor Author

Thank you for the suggestions. I have incorporated them and updated the related tests to check for the new errors.

@mrpasquini mrpasquini requested a review from rogerleite July 7, 2020 15:47
Copy link
Member

@rogerleite rogerleite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@rogerleite rogerleite merged commit 97121c6 into savonrb:master Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants