t0ng7u
8cb56fc319
🧹 fix: harden request-body size handling and error unwrapping
...
Tighten oversized request handling across relay paths and make error matching reliable.
- Align `MAX_REQUEST_BODY_MB` fallback to `32` in request body reader and decompression middleware
- Stop ignoring `GetRequestBody` errors in relay retry paths; return consistent **413** on oversized bodies (400 for other read errors)
- Add `Unwrap()` to `types.NewAPIError` so `errors.Is/As` can match wrapped underlying errors
- `go test ./...` passes
2025-12-16 18:10:00 +08:00
..
2025-12-13 16:43:57 +08:00
2025-10-11 15:30:09 +08:00
2025-12-02 21:34:39 +08:00
2025-12-08 21:14:50 +08:00
2025-10-11 15:30:09 +08:00
2025-12-16 17:00:19 +08:00
2025-11-19 14:34:30 +08:00
2025-10-30 21:16:42 +08:00
2025-03-15 19:10:12 +08:00
2025-11-16 14:50:59 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-11-22 19:06:53 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-12-13 16:43:57 +08:00
2025-10-11 15:30:09 +08:00
2025-11-22 19:06:53 +08:00
2025-10-11 15:30:09 +08:00
2025-12-13 16:43:38 +08:00
2025-10-11 15:30:09 +08:00
2025-10-28 23:25:43 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-12-16 18:10:00 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-07-21 21:38:53 +08:00
2025-12-09 11:15:27 +08:00
2025-12-16 17:00:19 +08:00
2025-10-11 15:30:09 +08:00
2025-12-13 16:45:42 +08:00
2025-12-16 17:00:19 +08:00
2025-10-30 13:41:52 +08:00
2025-10-20 22:36:33 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2025-11-22 18:38:24 +08:00
2025-10-11 15:30:09 +08:00
2025-12-09 11:15:27 +08:00
2025-12-09 11:15:27 +08:00
2025-10-11 15:30:09 +08:00