srs/internal/utils
Jacob Su df7a5addb8 Proxy: Add UT coverage for nil pointer and resource leak fixes
Add TestParseBody_CloseCalledOnReadError to verify r.Close() is called
even when ReadAll fails (resource leak fix).

Enhance TestBuildStreamURL with:
- Comment explaining the example.com case would panic before the nil
  pointer fix (net.ParseIP returns nil for non-IP hostnames)
- IPv6 test cases to verify ip.To4() check works correctly
- Clarifying comments for each test case category
2026-05-19 11:32:14 +08:00
..
utils_test.go Proxy: Add UT coverage for nil pointer and resource leak fixes 2026-05-19 11:32:14 +08:00
utils.go Proxy: Fix nil pointer panic in BuildStreamURL and resource leak in ParseBody 2026-05-19 11:17:51 +08:00