HttpClient could not download release artifacts (e.g. yt-dlp self-update):
- Beast's default body limit (~1 MiB) rejected the ~30 MB binary with
"body limit exceeded". Add set_max_body_size() (0 = unlimited; default
64 MiB) and read the body through a response_parser with that limit.
- Through an HTTP proxy the CONNECT reply was parsed with empty_body, so any
body on a non-2xx reply threw "unexpected body" before the status could be
inspected. Read only the header (skip(true) + read_header) so the tunnel
status is checked cleanly.
- Add set_max_redirects() to follow 3xx Location transparently (default 0 =
off, so callers that inspect redirects keep working). Resolves absolute,
host-relative and bare-relative Location targets.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>