Log user agents
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolai Ort 2021-09-25 17:09:19 +02:00
parent 0a8945a294
commit f15282a3f9
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -102,7 +102,7 @@ fastify.get('/e/:id', async (req, res) => {
//Normal shorturls //Normal shorturls
fastify.get('/:shortcode', async (req, res) => { fastify.get('/:shortcode', async (req, res) => {
const shortcode = req.params.shortcode; const shortcode = req.params.shortcode;
res.header("X-Robots-Tag","noindex, nofollow"); console.log(req.headers['user-agent'])
//This should never happen but better safe than 500 //This should never happen but better safe than 500
if (!shortcode) { if (!shortcode) {