-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RACK_URL_SCHEME calculation caring about more headers (#1491)
* RACK_URL_SCHEME read the same as in Rack * Code comment on HTTP_X_FORWARDED_PROTO - See rack/rack@85ca454 * Make default_server_port logic more readable * Test: X-Forwarded-Proto and friends * Calculate default_port respecting HTTP_X_FORWARDED_SCHEME, HTTP_X_FORWARDED_SSL * Calculate URL scheme using #default_server_port * Narrow down tests for default_server_port(env)
- Loading branch information
1 parent
4c85fac
commit 30fbd84
Showing
3 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters