Files
new-api/common
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-11-08 01:24:45 +08:00
2025-07-30 20:31:51 +08:00
2025-12-12 16:19:14 +08:00
2025-10-30 14:21:46 +08:00
2024-07-07 02:24:51 +08:00
2025-07-10 20:55:43 +08:00
2025-12-03 00:41:47 +08:00
2025-12-02 21:34:39 +08:00
2025-07-21 15:39:16 +08:00
2023-04-22 20:39:27 +08:00
2025-12-03 00:41:47 +08:00
2024-06-27 19:30:17 +08:00
2025-08-03 10:41:00 +08:00
2023-04-22 20:39:27 +08:00