fix(proxy): skip empty passthrough body streams - #854
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe proxy now omits the upstream body stream when the original request has Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
🔗 Linked issue
Resolves #853
❓ Type of change
📚 Description
Empty beacon POSTs with
Content-Length: 0were forwarded with aReadableStreambody, causing Node fetch to reject and the proxy to return 502. The proxy now omits the body andduplexoption for explicitly empty requests while preserving streams for nonempty opaque bodies.