20 redirects

This commit is contained in:
Meo597
2026-10-28 19:22:12 +08:00
parent 6d2d63461c
commit ba2c2acf02
+2 -2
View File
@@ -114,8 +114,8 @@ func newClient(baseCtx context.Context, dispatcher routing.Dispatcher, outbound
if req.URL.Scheme != "https" {
return errors.New("redirected to non-https URL: ", req.URL.String())
}
if len(via) >= 10 {
return errors.New("stopped after 10 redirects")
if len(via) >= 20 {
return errors.New("stopped after 20 redirects")
}
return nil
},