summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mehren2020-11-12 19:02:45 +0100
committerGitHub2020-11-12 19:02:45 +0100
commite191bde0138c873958937768f41e76e06ad61ae3 (patch)
tree6b5f2cd864584ca3a5bb7be84bc282f68afe9537
parentdb2fcdb516360fa1d5a6afb6963113756e4e1e9c (diff)
parent4b0e9970946f16452f77d4be0801d5737c026602 (diff)
Merge pull request #565 from codimd/fix/hsts-subdomains-warning
Fix deprecation warning of "includeSubDomains"
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 97eebcc0..90beefbe 100644
--- a/app.js
+++ b/app.js
@@ -91,7 +91,7 @@ app.use(compression())
if (config.hsts.enable) {
app.use(helmet.hsts({
maxAge: config.hsts.maxAgeSeconds,
- includeSubdomains: config.hsts.includeSubdomains,
+ includeSubDomains: config.hsts.includeSubdomains,
preload: config.hsts.preload
}))
} else if (config.useSSL) {