1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Not need to do this double ternary

This commit is contained in:
Santiago Pastorino 2010-09-26 17:43:26 -03:00
parent 29f13beda3
commit db23e32141

View file

@ -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",