mirror of
https://github.com/SukkaW/Surge.git
synced 2026-06-14 03:31:49 +08:00
Fix: undici retry on UND_ERR_DESTROYED
This commit is contained in:
@@ -57,6 +57,7 @@ const agent = new Agent({
|
||||
// Any code that is not a Undici's originated and allowed to retry
|
||||
if (
|
||||
errorCode === 'ERR_UNESCAPED_CHARACTERS'
|
||||
|| errorCode === 'UND_ERR_DESTROYED'
|
||||
|| err.message === 'Request path contains unescaped characters'
|
||||
|| err.name === 'AbortError'
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user