Two fixes in the HTTP server: 1. Read full POST body: the single 8192-byte read() could miss the body if it arrived in a separate TCP segment. Now parses Content-Length and reads remaining bytes in a loop. 2. Handler param binding: for POST/PUT/PATCH, check request-form before request-arg. The old (or (request-arg n) (request-form n)) pattern short-circuited on request-arg's "" default (truthy in SX), never reaching request-form. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
143 KiB
143 KiB