mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 12:23:25 +00:00
Fix ESLint errors
This commit is contained in:
@@ -6,7 +6,8 @@ const corsHeaders = {
|
|||||||
|
|
||||||
async function handleRequest(request, destinationUrl, iteration = 0) {
|
async function handleRequest(request, destinationUrl, iteration = 0) {
|
||||||
console.log(
|
console.log(
|
||||||
`PROXYING ${destinationUrl}${iteration ? ' ON ITERATION ' + iteration : ''
|
`PROXYING ${destinationUrl}${
|
||||||
|
iteration ? ' ON ITERATION ' + iteration : ''
|
||||||
}`,
|
}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -122,8 +123,7 @@ addEventListener('fetch', (event) => {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
} else if (
|
||||||
else if (
|
|
||||||
request.method === 'GET' ||
|
request.method === 'GET' ||
|
||||||
request.method === 'HEAD' ||
|
request.method === 'HEAD' ||
|
||||||
request.method === 'POST'
|
request.method === 'POST'
|
||||||
|
Reference in New Issue
Block a user