Skip to content

Commit

Permalink
chore: statically define an user agent for the script download events
Browse files Browse the repository at this point in the history
  • Loading branch information
akoenig committed May 6, 2024
1 parent a93cf2e commit 70840de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/$category.$id/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export async function loader({ params, request }: LoaderFunctionArgs) {
{
method: "POST",
headers: {
"User-Agent": request.headers.get("User-Agent") ?? "fetch",
"User-Agent":
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
"X-Forwarded-For": request.headers.get("X-Forwarded-For") ?? "",
"Content-Type": "application/json",
"X-Debug-Requested": "true",
Expand Down

0 comments on commit 70840de

Please sign in to comment.