Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix h1_client feature #69

Merged
merged 1 commit into from
Feb 15, 2021
Merged

Fix h1_client feature #69

merged 1 commit into from
Feb 15, 2021

Conversation

taiki-e
Copy link
Contributor

@taiki-e taiki-e commented Feb 14, 2021

Context: #67 (comment)

  • When both "native-tls" and "rustls" features are disabled, disable https.
  • When both "native-tls" and "rustls" features are enabled, prefer "rustls".
    This is the same behavior as http-client 6.2.0.
    Ideally, it would be nice if this behavior could be controlled by
    environment variables or some other way.

This also adds a CI task to check all feature combinations work properly. (see http-rs/surf#282 for more)

@taiki-e
Copy link
Contributor Author

taiki-e commented Feb 14, 2021

  • When both "native-tls" and "rustls" features are disabled, disable https.

Note that this fixes the issue in http-client 6.3.0, but is not the same behavior as http-client 6.2.0.
If you want the same behavior as http-client 6.2.0, I can fix it, but that will be actually a patch similar to reverting #67.

* When both "native-tls" and "rustls" features are disabled, disable https.
* When both "native-tls" and "rustls" features are enabled, prefer "rustls".
  This is the same behavior as http-client 6.2.0.
  Ideally, it would be nice if this behavior could be controlled by
  environment variables or some other way.

This also adds a CI task to check all feature combinations work properly.
@Fishrock123
Copy link
Member

Thanks! Sorry I didn't catch this on the last release.

@Fishrock123
Copy link
Member

Released in 6.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants