atproto relay in zig zlay.waow.tech
relay zig atproto

fix: read full POST body when split across TCP segments master

reverse proxies (traefik) may send headers and body in separate TCP writes. the single stream.read() only got headers, leaving the body empty — causing all POST endpoints (requestCrawl, ban, block/unblock) to fail with "invalid JSON" through the ingress. now parses Content-Length from headers and keeps reading until the full body is received. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>


+45 -10
1 changed file