# http: 检测到重定向循环

- **ID:** `go/http-redirect-loop`
- **领域:** go
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

HTTP客户端跟随过多重定向（默认10次）而没终止，表明存在循环。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.22 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   Set custom CheckRedirect function to limit and detect loops
   ```
2. **** (85% 成功率)
   ```
   Disable redirects and handle manually
   ```

## 无效尝试

- **** — May still loop indefinitely; wastes resources (50% 失败率)
- **** — No control over server (40% 失败率)
