mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-22 00:24:12 +00:00
* feat(web): cap request body size on state-changing routes * fix(web): exempt importDB from request body size cap The 10 MiB body cap was applied globally, which would break database restore (/panel/api/server/importDB) on any panel whose SQLite backup exceeds the limit. Make MaxBodyBytes accept exempt path suffixes and pass importDB through uncapped; the cap still covers all other state-changing routes. Add a test for the skip-suffix behavior. --------- Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com> |
||
|---|---|---|
| .. | ||
| bodylimit.go | ||
| bodylimit_test.go | ||
| domainValidator.go | ||
| security.go | ||
| security_test.go | ||
| validate.go | ||
| validate_mutation_test.go | ||
| validate_test.go | ||