didericis-claude
96b0c3f1fa
fix(git-http): validate Content-Length and cap body size (PRD 0041)
...
Before this change, int() on a non-numeric Content-Length raised an
unhandled ValueError, crashing the request handler. There was also no
upper bound on how much memory a POST body could consume.
After this change:
- Non-numeric or missing Content-Length returns HTTP 400.
- Negative Content-Length returns HTTP 400.
- Bodies declared larger than 1 MiB (_MAX_BODY_BYTES) return HTTP 413,
matching the cap already in supervise_server.py.
Closes #138
2026-06-02 11:23:19 -04:00
..
2026-06-02 04:53:23 +00:00
2026-05-28 17:56:14 -04:00
2026-06-02 11:16:17 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:59:24 -04:00
2026-06-02 08:10:34 +00:00
2026-06-01 22:24:17 -04:00
2026-05-28 18:44:42 -04:00
2026-05-28 23:49:21 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-06-02 11:15:27 -04:00
2026-05-28 17:59:24 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-06-01 22:24:17 -04:00
2026-06-01 22:24:17 -04:00
2026-05-28 17:56:14 -04:00
2026-05-29 22:13:17 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-06-02 05:45:20 +00:00
2026-05-29 23:21:50 -04:00
2026-06-02 11:23:19 -04:00
2026-05-29 00:15:15 -04:00
2026-06-01 22:24:17 -04:00
2026-05-29 00:15:15 -04:00
2026-05-29 00:15:15 -04:00
2026-05-29 00:15:15 -04:00
2026-06-02 07:32:06 +00:00
2026-05-29 00:15:15 -04:00
2026-06-01 22:24:17 -04:00
2026-05-28 17:56:14 -04:00
2026-06-02 08:15:20 +00:00
2026-06-01 22:24:17 -04:00
2026-05-29 23:21:50 -04:00
2026-05-28 17:56:14 -04:00
2026-06-02 07:52:19 +00:00
2026-06-01 22:24:17 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00
2026-06-02 06:23:39 +00:00
2026-06-02 14:38:36 +00:00
2026-06-01 23:28:33 -04:00
2026-05-28 17:56:14 -04:00
2026-05-28 18:49:28 -04:00
2026-06-02 06:29:05 +00:00
2026-05-28 17:56:14 -04:00
2026-06-02 08:06:45 +00:00
2026-05-28 17:56:14 -04:00
2026-05-28 17:56:14 -04:00