diff --git a/index.js b/index.js index c8140af..9e2bbee 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ module.exports = function (opts) { opts.port = 443; } if (!('body' in opts)) { - opts.body = ""; } opts.body = opts.body.replace(/{{\s+PORT\s+}}/ig, opts.port); diff --git a/package.json b/package.json index 60906c4..aece0ba 100644 --- a/package.json +++ b/package.json @@ -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": {