v1.1.6: don't be so insensitive
This commit is contained in:
parent
1dc4ca755c
commit
11b1697d74
2
index.js
2
index.js
|
@ -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);
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue