Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Jan 24, 2025
1 parent c2db402 commit f6a0a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v2/data/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default async function handler(req, res) {
.send("Bad request (multiple id)");
return;
}
const { Accept } = req.headers;
if (Accept.includes("image/webp")) {
const { accept } = req.headers;
if (accept.includes("image/webp")) {
const response = await fetch(`https://gi-tcg-card-data-img.vercel.app/${id}.webp`);
res.status(200).send(response);
return;
Expand Down

0 comments on commit f6a0a68

Please sign in to comment.