diff --git a/src/app/api/debug/test/route.js b/src/app/api/debug/test/route.js index 828442a..23cbad7 100644 --- a/src/app/api/debug/test/route.js +++ b/src/app/api/debug/test/route.js @@ -1,10 +1,15 @@ export async function POST(request) { const body = await request.json(); const res = await fetch(body.url, { + method: "GET", headers: body.headers, cache: "no-store" }); - const data = res.headers; - return Response.json(data); + const headers = {}; + res.headers.forEach((value, key) => { + headers[key] = value; + }); + + return Response.json(headers); }