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

Move the least common check to the end of the conditional

This commit is contained in:
Rafael Mendonça França 2021-11-26 20:43:40 +00:00
parent 9d6f7681af
commit 6f8aa2b17d
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -439,7 +439,7 @@ module ActionDispatch
end
def write_cookie?(cookie)
request.ssl? || request.host.end_with?(".onion") || !cookie[:secure] || always_write_cookie
request.ssl? || !cookie[:secure] || always_write_cookie || request.host.end_with?(".onion")
end
def handle_options(options)