Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Buco7854 committed Mar 18, 2023
1 parent d6ce2fb commit 80b6050
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controllers/index.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const path = require('path');

async function index(req, res, next) {
try {
console.log(req.ips);
// If there is a slash at the beginning it means the user provided 2 /, so we redirect to the sanitized path
const permissions = getPermissionsFor(
req.app.locals.config,
res.locals.path,
Expand All @@ -27,7 +25,7 @@ async function index(req, res, next) {
}

if (res.locals.entity.isFile()){
// req.ips will be empty if request didn't go through trusted proxy.
// req.ips will be empty if request didn't go through trusted proxy (the proxy must send the client ip).
if (req.ips.length > 0){
res.status(200).json({"detail":"ok"});
}
Expand Down

0 comments on commit 80b6050

Please sign in to comment.