Compare commits
No commits in common. "f4413b29d0582db52623c40a99db8f8d1de9e9da" and "a3f3c4b041e7216d596ed5fff14826a9a781a833" have entirely different histories.
f4413b29d0
...
a3f3c4b041
2
index.js
2
index.js
|
@ -39,7 +39,7 @@ module.exports = function (opts) {
|
||||||
try {
|
try {
|
||||||
encodedLocation = decodeURIComponent(newLocation);
|
encodedLocation = decodeURIComponent(newLocation);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
encodedLocation = newLocation; // "#/error/?error_message=" + e.toString();
|
encodedLocation = "#/error/?error_message=" + e.toString();
|
||||||
}
|
}
|
||||||
var body = opts.body
|
var body = opts.body
|
||||||
.replace(/{{\s*HTML_URL\s*}}/ig, escapeHtml(encodedLocation))
|
.replace(/{{\s*HTML_URL\s*}}/ig, escapeHtml(encodedLocation))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "redirect-https",
|
"name": "redirect-https",
|
||||||
"version": "1.1.3",
|
"version": "1.1.2",
|
||||||
"description": "Redirect from HTTP to HTTPS using meta redirects",
|
"description": "Redirect from HTTP to HTTPS using meta redirects",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue