We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67a3874 commit 1b5eeb7Copy full SHA for 1b5eeb7
app.js
@@ -5,7 +5,7 @@ const app = express()
5
// #############################################################################
6
// Logs all request paths and method
7
app.use(function (req, res, next) {
8
- res.res.set('x-timestamp', Date.now())
+ res.set('x-timestamp', Date.now())
9
res.set('x-powered-by', 'cyclic.sh')
10
console.log(`[${new Date().toISOString()}] ${req.ip} ${req.method} ${req.path}`);
11
next();
0 commit comments