You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(standard-server): filter out undefined headers for node:http adapters compatibility (#1269)
Node.js http module throws an error when headers contain undefined
values. Additionally, Fastify treats undefined headers as empty strings,
which differs from oRPC's expected behavior of omitting them from the
response.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved HTTP response header handling to filter out undefined values,
ensuring consistent and correct headers (including intentional omission
of content-type) across Fastify and Node.js responses.
* **Tests**
* Added unit tests validating header transformation and that undefined
headers are omitted, plus coverage for multiple response scenarios.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments