mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 16:43:26 +00:00
fix event error
This commit is contained in:
@@ -59,11 +59,9 @@ async function handleRequest(oRequest, destination, iteration = 0) {
|
|||||||
) {
|
) {
|
||||||
// Server tried to redirect too many times
|
// Server tried to redirect too many times
|
||||||
if (iteration > 5) {
|
if (iteration > 5) {
|
||||||
return event.respondWith(
|
return new Response('418 Too many redirects', {
|
||||||
new Response('418 Too many redirects', {
|
status: 418,
|
||||||
status: 418,
|
});
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle and return the request for the redirected destination
|
// Handle and return the request for the redirected destination
|
||||||
|
Reference in New Issue
Block a user