v5.0.73: req.Close=true — force new TCP per request

This commit is contained in:
“Naeel”
2026-07-01 16:09:54 +04:00
parent 11f5464367
commit 42210c2250
4 changed files with 212 additions and 2 deletions
@@ -847,6 +847,9 @@ func (c *UniversalClient) doRequest(ctx context.Context, method, path string, pa
}
req.URL.RawQuery = rawQuery
// Форсируем новое TCP-соединение: DDoS-Guard может блочить POST на keep-alive
req.Close = true
req.Header.Set("User-Agent", userAgent)
req.Header.Set("Accept", "*/*")
if body != nil {