Skip to content

Commit

Permalink
Update route.js
Browse files Browse the repository at this point in the history
  • Loading branch information
uesleibros authored Sep 3, 2024
1 parent 5a3c7b4 commit 2f4633f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/api/imagens/anroll/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function GET(request) {

try {
const url = decodeURIComponent(query);
console.log(await fetch(url, {
const testt = await fetch(url, {
method: "HEAD",
headers: {
"Authority": new URL(url).host,
Expand All @@ -26,10 +26,11 @@ export async function GET(request) {
"X-Originating-IP": "172.67.177.146",
"X-Remote-Addr": "172.67.177.146",
"Cluster-Client-IP": "172.67.177.146",
"X-HTTP-Method-Override": "GET",
"X-HTTP-Method-Override": "HEAD",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
}
}).headers);
});
console.log(testt.headers);
const res = await fetch(url, {
headers: {
"Authority": new URL(url).host,
Expand Down

0 comments on commit 2f4633f

Please sign in to comment.