Skip to content

Commit

Permalink
feat: change header name
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Jan 19, 2024
1 parent 195ab6d commit fdc5a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/deferred/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function retrieveKeyFromRequest(
const checkVersion = (input: string) => /(iPhone|iPad) OS ([1-9]*)_([1-9]*)/g.exec(input);
const checkDevice = (input: string) => /(iPhone)/g.exec(input)?.[1] || 'unknown';

const forwarded = req.headers.get('x-forwarded-for');
const forwarded = req.headers.get('cf-connecting-ip');
const detectedVersion = checkVersion(userAgent);
const majorVersion = detectedVersion?.[2] ?? 'd';
const minorVersion = detectedVersion?.[3] ?? 'd';
Expand Down

0 comments on commit fdc5a29

Please sign in to comment.