aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-01-02 14:58:03 +0100
committerache <ache@ache.one>2018-01-02 14:58:03 +0100
commit205716c3ac8daf16dad0d6454a8efd66416a8d28 (patch)
treeea900f4ff09fd17c37af20a0291085f6c210425f
parentRaw button implementation (diff)
decode the URL
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 5182330..c64d3cd 100644
--- a/app.js
+++ b/app.js
@@ -41,7 +41,7 @@ const userSide_Button = '<button class="raw_button" ><div><div>Raw</div></div></
app.use(express.static('public'));
app.get('/' + path + '/*', function(req, res) {
- var url = req._parsedUrl.pathname;
+ var url = decodeURI(req._parsedUrl.pathname);
var query = req.query;
console.log("[" + new Date() + "] > " + "200 - " + url);