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 https_only/enforce_https enforcement #295

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

saleemrashid
Copy link
Contributor

@saleemrashid saleemrashid commented Dec 18, 2024

Since the check for self.force_https was removed in b7ae349, HttpsConnectorBuilder::https_only/HttpsConnector::enforce_https have been no-ops.

This pull request restores the old behavior and adds some tests.

Cargo.toml Outdated Show resolved Hide resolved
src/connector.rs Show resolved Hide resolved
@djc
Copy link
Member

djc commented Dec 19, 2024

Thanks for fixing this -- and sorry for breaking it in the first place!

Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

😢 Good catch, thank you.

@djc djc added this pull request to the merge queue Dec 19, 2024
Merged via the queue into rustls:main with commit ac87344 Dec 19, 2024
11 checks passed
@djc djc mentioned this pull request Dec 20, 2024
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.

4 participants