show the referrer

This commit is contained in:
Christian Müller
2015-12-20 20:01:19 +01:00
parent c09a137888
commit ac9f431fe2
+1
View File
@@ -116,6 +116,7 @@ app.get(/\/([a-z0-9]+\/stats)/, function (req, res) {
app.get(/\/([a-z0-9]+)/, function (req, res) { app.get(/\/([a-z0-9]+)/, function (req, res) {
var link = req.params["0"]; var link = req.params["0"];
console.log("Referer", req.get("Referer"));
log(req.ip, "open note", link); log(req.ip, "open note", link);
if (CACHE.has(link)) { if (CACHE.has(link)) {
log(link, "is cached!"); log(link, "is cached!");