diff options
author | ache <ache@ache.one> | 2018-01-02 14:58:03 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-01-02 14:58:03 +0100 |
commit | 205716c3ac8daf16dad0d6454a8efd66416a8d28 (patch) | |
tree | ea900f4ff09fd17c37af20a0291085f6c210425f | |
parent | Raw button implementation (diff) |
decode the URL
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |