mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
A captured 2.1.1 request carries neither an Accept header nor a trailing Content-Length: fetch fills Accept with */* and computes Content-Length as part of the common-header block. The gateway set both itself, so the v2 lane sent an Accept value the client never produces and put Content-Length last, where no fetch request has it. Header order and presence are part of what a fingerprint sees, so the v2 lane now sets no Accept and the Bun head emits Content-Length among the common headers instead of trailing the request. The v1 lane keeps its own Accept, which is what that client sends. Co-authored-by: AiFLYF <AiFLYF@users.noreply.github.com>