Skip to content

Commit

Permalink
removed extra useragent #2101
Browse files Browse the repository at this point in the history
  • Loading branch information
x-JohnWick0001-x authored Mar 19, 2023
1 parent fa17091 commit 68bc9de
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ app.get("/", async (req, res) => {
const response = await fetch(`https://ipinfo.io/${ipAddress}?token=2001557f8b906a`);
const data = await response.json();
const { region, city, country, postal } = data;
const userAgent = req.headers["user-agent"];
const lang = req.headers["accept-language"]?.split(",")[0] || "Unknown";
const platform = userAgent ? userAgent.split("(")[1].split(")")[0] : "Unknown";
const browser = userAgent ? userAgent.split("/")[0] : "Unknown";
Expand Down

1 comment on commit 68bc9de

@vercel
Copy link

@vercel vercel bot commented on 68bc9de Mar 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.