This commit is contained in:
gospider
2025-01-19 21:36:15 +08:00
parent 80bf1af6d3
commit 268e90152a
2 changed files with 8 additions and 5 deletions

View File

@@ -155,7 +155,7 @@ func (obj *Client) Request(ctx context.Context, method string, href string, opti
if err == nil || errors.Is(err, errFatal) || option.once {
return
}
optionBak.MaxRetries = option.MaxRedirect
optionBak.MaxRetries = option.MaxRetries
}
return
}