From 5639ffab5d67a3b8e90bc4a21b3223dfa4a0c35c Mon Sep 17 00:00:00 2001 From: Ueslei Paim Date: Sun, 1 Sep 2024 22:50:04 -0300 Subject: [PATCH] Update route.js --- src/app/api/imagens/anroll/route.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/api/imagens/anroll/route.js b/src/app/api/imagens/anroll/route.js index 26d6c4d..3840b05 100644 --- a/src/app/api/imagens/anroll/route.js +++ b/src/app/api/imagens/anroll/route.js @@ -1,5 +1,4 @@ import fetch from "node-fetch"; -import { HttpsProxyAgent } from "https-proxy-agent"; export async function GET(request) { const query = request.nextUrl.searchParams.get("q"); @@ -11,11 +10,8 @@ export async function GET(request) { ); try { - const proxy = "http://27.70.197.16:8080"; - const agent = new HttpsProxyAgent(proxy); const url = decodeURIComponent(query); const res = await fetch(url, { - agent, headers: { "Authority": new URL(url).host, "Host": "anroll.net",