diff options
author | Bennett <hello@vantezzen.io> | 2020-03-10 15:44:29 +0100 |
---|---|---|
committer | Bennett <hello@vantezzen.io> | 2020-03-10 15:44:29 +0100 |
commit | 6664abb0fe0f8e75e605d8344a6434b2bdf57ca2 (patch) | |
tree | 9dbbc514378f7668f05b3bfefc9a345deeeebf50 /app | |
parent | #12 Handle multiple slashes in path (diff) | |
download | ferdium-server-6664abb0fe0f8e75e605d8344a6434b2bdf57ca2.tar.gz ferdium-server-6664abb0fe0f8e75e605d8344a6434b2bdf57ca2.tar.zst ferdium-server-6664abb0fe0f8e75e605d8344a6434b2bdf57ca2.zip |
Add "IS_DASHBOARD_ENABLED" option
Diffstat (limited to 'app')
-rw-r--r-- | app/Middleware/HandleDoubleSlash.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/Middleware/HandleDoubleSlash.js b/app/Middleware/HandleDoubleSlash.js index 94f4fe8..456b774 100644 --- a/app/Middleware/HandleDoubleSlash.js +++ b/app/Middleware/HandleDoubleSlash.js | |||
@@ -10,8 +10,6 @@ class HandleDoubleSlash { | |||
10 | * @param {Function} next | 10 | * @param {Function} next |
11 | */ | 11 | */ |
12 | async handle ({ request, response }, next) { | 12 | async handle ({ request, response }, next) { |
13 | console.log(request.url()); | ||
14 | |||
15 | // Redirect requests that contain duplicate slashes to the right path | 13 | // Redirect requests that contain duplicate slashes to the right path |
16 | if (request.url().includes('//')) { | 14 | if (request.url().includes('//')) { |
17 | return response.redirect( | 15 | return response.redirect( |