mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
remove allow_agent
This commit is contained in:
parent
71c1b979da
commit
537ddde189
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import { uuid } from 'lib/crypto';
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
await useCors(req, res);
|
await useCors(req, res);
|
||||||
|
|
||||||
if (isbot(req.headers['user-agent']) && !process.env.ALLOW_AGENT) {
|
if (isbot(req.headers['user-agent'])) {
|
||||||
return ok(res);
|
return ok(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue