v1.1.6: don't be so insensitive

This commit is contained in:
AJ ONeal 2018-08-16 20:50:50 -06:00
부모 1dc4ca755c
커밋 11b1697d74
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -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": {