Use sync.Once to ensure resp.Body is closed exactly once, preventing TCP connection leaks when the iterator is never consumed and double-close when iterated twice. Also adds Accept: text/event-stream header to both SSE endpoints. Co-Authored-By: Virgil <virgil@lethean.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| health.go | ||
| health_test.go | ||