mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Not need to do this double ternary
This commit is contained in:
@@ -264,7 +264,7 @@ module ActionDispatch
|
||||
:params => parameters,
|
||||
|
||||
"SERVER_NAME" => hostname,
|
||||
"SERVER_PORT" => (port ? port : (https? ? "443" : "80")),
|
||||
"SERVER_PORT" => port || https? ? "443" : "80",
|
||||
"HTTPS" => https? ? "on" : "off",
|
||||
"rack.url_scheme" => https? ? "https" : "http",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user