Skip to content

Commit

Permalink
Use expected spelling of preferred language key
Browse files Browse the repository at this point in the history
(will take effect once gergelyke/express-security.txt#5 is merged)
  • Loading branch information
bkimminich committed Dec 22, 2020
1 parent ecd4e08 commit 1c8195c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ app.use(['/.well-known/security.txt', '/security.txt'], securityTxt({
contact: config.get('application.securityTxt.contact'),
encryption: config.get('application.securityTxt.encryption'),
acknowledgements: config.get('application.securityTxt.acknowledgements'),
preferredLanguages: [...new Set(locales.map(locale => locale.key.substr(0, 2)))].join(', '),
'Preferred-Languages': [...new Set(locales.map(locale => locale.key.substr(0, 2)))].join(', '),
expires: securityTxtExpiration.toUTCString()
}))

Expand Down

0 comments on commit 1c8195c

Please sign in to comment.