Compare commits
2 Commits
a3f3c4b041
...
f4413b29d0
Author | SHA1 | Date |
---|---|---|
AJ ONeal | f4413b29d0 | |
AJ ONeal | 76b3d8c7d1 |
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 = "#/error/?error_message=" + e.toString();
|
encodedLocation = newLocation; // "#/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.2",
|
"version": "1.1.3",
|
||||||
"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