Skip to content

Commit

Permalink
fix(lambda-analytics): track jpg requests too (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha authored Aug 30, 2021
1 parent 617faf8 commit 5acab18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lambda-analytics/src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function track(stat: TileRequestStats, uri: string, status: number, isHit: boole

// Extension
if (uri.endsWith('.webp')) stat.extension.webp++;
else if (uri.endsWith('.jpeg')) stat.extension.jpeg++;
else if (uri.endsWith('.jpeg') || uri.endsWith('.jpg')) stat.extension.jpeg++;
else if (uri.endsWith('.png')) stat.extension.png++;
else if (uri.endsWith('.pbf')) stat.extension.pbf++;
else if (uri.endsWith('.xml')) {
Expand Down

0 comments on commit 5acab18

Please sign in to comment.