Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3252 +/- ##
==========================================
+ Coverage 93.34% 96.23% +2.88%
==========================================
Files 43 46 +3
Lines 4735 4431 -304
==========================================
- Hits 4420 4264 -156
+ Misses 192 167 -25
+ Partials 123 0 -123 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
When middleware calls
QueryParams()and later rewrites or replaces the request throughSetRequest, the parsed query cache still belongs to the old request.QueryString()reports the new URL, whileQueryParam(),QueryParams()and query binding continue using the old values.Invalidate the cached query parameters in
SetRequest. Add fullServeHTTPregressions for both a request clone and an in-place URL rewrite, covering changed, removed and repeated parameters plus the bound response. Both cases fail before the fix.Validation passed: full race suites on Go 1.27.4, 1.27.3 and 1.25.0,
go vet ./...,golint -set_exit_status ./...,staticcheck ./..., andgovulncheck ./...with patched Go 1.27.4. The test processes use direct local connections because the environment HTTP proxy returned 502 for wildcard-address test servers.Summary by CodeRabbit