提交 dabc5705 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #30756 from y-yagi/dont_use_active_support_where_it_is_not_needed

Don't use Active Support where it is not needed.
......@@ -49,7 +49,7 @@ class SSL
# Default to 180 days, the low end for https://www.ssllabs.com/ssltest/
# and greater than the 18-week requirement for browser preload lists.
HSTS_EXPIRES_IN = 180.days.to_i
HSTS_EXPIRES_IN = 15552000
def self.default_hsts_options
{ expires: HSTS_EXPIRES_IN, subdomains: true, preload: false }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册