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 up SERVER_PORT when using ssl #397

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

erikt9
Copy link
Contributor

@erikt9 erikt9 commented Nov 7, 2023

Fixes #357

Seems like there's already code in connection.rb to fix up the env when using ssl (rack.url_scheme is always "http" after running through thin_parser). This fixes up the SERVER_PORT as well.

@ioquatix
Copy link
Collaborator

ioquatix commented Nov 7, 2023

Is it possible to add some tests? Thanks

@erikt9
Copy link
Contributor Author

erikt9 commented Nov 7, 2023

@ioquatix Added a test (and fixed a spelling error in the spec).

@ioquatix ioquatix merged commit b428f6c into macournoyer:master Nov 8, 2023
7 of 11 checks passed
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.

SERVER_PORT is incorrectly set to 80 when SSL is used on default port of 443
2 participants