Skip to content

v3.0.2

Latest

Choose a tag to compare

@aditiohri aditiohri released this 10 Feb 18:51
· 1 commit to master since this release

spandx v3.0.2 – Release Summary

Bug Fixes

ESI: safe handling of missing Accept header (#362)

  • Uses optional chaining (?.) when reading req.headers.accept before applying ESI processing
  • Avoids crashes when the Accept header is missing or undefined (e.g. some clients or tools)
  • ESI is now applied only when the request clearly accepts HTML (text/html or */*)

Impact

  • Requests without an Accept header no longer trigger errors when ESI is enabled
  • Improves compatibility with tools like cURL and custom clients that omit headers

Upgrade

yarn add spandx@3.0.2
or
npm install spandx@3.0.2