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

No need to freeze constants

This commit is contained in:
Rafael Mendonça França 2020-12-28 22:21:18 +00:00
parent 2fdc9850f9
commit 72d30056a4
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -52,7 +52,7 @@ module ActionDispatch
# Default to 2 years as recommended on hstspreload.org.
HSTS_EXPIRES_IN = 63072000
PERMANENT_REDIRECT_REQUEST_METHODS = %w[GET HEAD].freeze
PERMANENT_REDIRECT_REQUEST_METHODS = %w[GET HEAD] # :nodoc:
def self.default_hsts_options
{ expires: HSTS_EXPIRES_IN, subdomains: true, preload: false }