Change8

node-fetch-server@0.14.0

📦 remixView on GitHub →
2 features🐛 2 fixes🔧 2 symbols

Summary

This release introduces a new "trustProxy" option for handling requests behind reverse proxies and improves error handling during request body reads and streaming responses.

✨ New Features

  • Added a "trustProxy" option to createRequestListener() and createRequest() to allow construction of request.url from Forwarded, X-Forwarded-Host, and X-Forwarded-Proto headers when behind trusted reverse proxies.
  • createRequestListener() now uses trusted Forwarded and X-Forwarded-For values for handler client address information.

🐛 Bug Fixes

  • Request body reads are now rejected when clients abort uploads.
  • Avoid writing fallback error responses after streaming response headers are already committed.

Affected Symbols