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:
parent
2fdc9850f9
commit
72d30056a4
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue