This commit is contained in:
skidoodle 2023-12-13 15:09:16 +01:00
parent 5e46ceb833
commit b612d2327d
2 changed files with 2 additions and 4 deletions

View file

@ -14,7 +14,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
const address = req.headers.host
const baseUrl = `https://dload-oktatas.educatio.hu/erettsegi/feladatok_${ev}${idoszak}_${szint}/`
const proxiedUrl = `${protocol}://${address}/api/proxy?link=${encodeURIComponent(
const proxiedUrl = `${protocol}://${address}/api/proxy?link=${encodeURI(
baseUrl
)}`