Repository navigation
Version 0.4.0
Bug Fixes
- Fix retry middleware body handling for POST/PUT/PATCH requests - request bodies are now properly buffered and replayed on retry attempts
- Preserve HTTP response on transport errors in cache and repeater middlewares (fixes http.RoundTripper contract violation)
Improvements
- Add configurable body buffering for retry middleware with RetryBufferBodies and RetryMaxBufferSize options
- Update Go version requirement to 1.21
- Update copyright year to 2025
- Fix flaky timing tests in CI environments
Dependencies
- Update testify to v1.11.1
Notes
- Default behavior for retry middleware remains unchanged (backward compatible)
- Body buffering is disabled by default to preserve large file upload support
- Bodies that can't be replayed will automatically limit retry attempts to 1