v1.1.6: don't be so insensitive

This commit is contained in:
AJ ONeal 2018-08-16 20:50:50 -06:00
parent 1dc4ca755c
commit 11b1697d74
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ module.exports = function (opts) {
opts.port = 443;
}
if (!('body' in opts)) {
opts.body = "<!-- Hello Mr Developer! We don't serve insecure resources around here."
opts.body = "<!-- Hello Developer Person! We don't serve insecure resources around here."
+ "\n Please use HTTPS instead. -->";
}
opts.body = opts.body.replace(/{{\s+PORT\s+}}/ig, opts.port);

View File

@ -1,6 +1,6 @@
{
"name": "redirect-https",
"version": "1.1.5",
"version": "1.1.6",
"description": "Redirect from HTTP to HTTPS using meta redirects",
"main": "index.js",
"scripts": {