mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Fixed vercel issues.
This commit is contained in:
parent
c49e2c6974
commit
5864aee043
2 changed files with 6 additions and 21 deletions
|
|
@ -65,8 +65,8 @@ export async function getLocation(ip, req) {
|
|||
if (req.headers['x-vercel-ip-country']) {
|
||||
return {
|
||||
country: req.headers['x-vercel-ip-country'],
|
||||
subdivision1: `${req.headers['x-vercel-ip-country']}-${req.headers['x-vercel-ip-country-region']}`,
|
||||
city: req.headers['x-vercel-ip-city'],
|
||||
subdivision1: req.headers['x-vercel-ip-country-region'],
|
||||
city: decodeURIComponent(req.headers['x-vercel-ip-city']),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue