mirror of
https://github.com/sussy-code/sudo-proxy.git
synced 2026-01-11 20:10:18 +00:00
fix event error
This commit is contained in:
parent
f9f46cde0b
commit
cc7c09d199
1 changed files with 3 additions and 5 deletions
|
|
@ -59,11 +59,9 @@ async function handleRequest(oRequest, destination, iteration = 0) {
|
|||
) {
|
||||
// Server tried to redirect too many times
|
||||
if (iteration > 5) {
|
||||
return event.respondWith(
|
||||
new Response('418 Too many redirects', {
|
||||
status: 418,
|
||||
}),
|
||||
);
|
||||
return new Response('418 Too many redirects', {
|
||||
status: 418,
|
||||
});
|
||||
}
|
||||
|
||||
// Handle and return the request for the redirected destination
|
||||
|
|
|
|||
Loading…
Reference in a new issue