fix patch gateway feat/phase-2g-bundle
AI Agent git-import/068377df · 126 days ago · Mar 22, 2026 · Diff

fix(gateway): strip stale body headers before upstream fetch

Forwarding the browser Content-Length after express.json() and JSON re-serialize (provenance merge) can leave a length that does not match the new body; Undici fetch may hang, so hosted create/save appeared to do nothing. Remove Content-Length, Transfer-Encoding, and Content-Encoding before fetch to the canister and bridge. Add regression tests and document in hub/gateway/README.md.

sha256:b15fe542f470a6f57200431f02c42a77b122bdb3b0f9df06d2fc1ef5051d61cd sha
sha256:92df541a1c140dbbaab62693492fd830ea38202f54e9c2dd09bd760a10a15dd3 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:b15fe542f470a6f57200431f02c42a77b122bdb3b0f9df06d2fc1ef5051d61cd --body "your comment"