Fix deprecation warning of "includeSubDomains"

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2020-11-11 20:50:52 +01:00
parent 6e6ce29de3
commit 4b0e997094
No known key found for this signature in database
GPG key ID: DEBDB3F34641B019

2
app.js
View file

@ -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) {