Skip to content

fix: handle raw ArrayBuffer in res.send - #7425

Closed
AbhiPra24 wants to merge 1 commit into
expressjs:masterfrom
AbhiPra24:fix/res-send-arraybuffer
Closed

fix: handle raw ArrayBuffer in res.send#7425
AbhiPra24 wants to merge 1 commit into
expressjs:masterfrom
AbhiPra24:fix/res-send-arraybuffer

Conversation

@AbhiPra24

Copy link
Copy Markdown

Fixes #7362

Summary

Converts raw ArrayBuffer instances to Buffer.from(chunk) in res.send(), preventing them from falling through to res.json() and serializing as {}.

Verification

  • Added unit tests for ArrayBuffer handling in test/res.send.js.
  • All unit tests passing via npm test.

@krzysdz

krzysdz commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #7363

@krzysdz krzysdz marked this as a duplicate of #7363 Aug 21, 2026
@krzysdz krzysdz closed this Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

res.send(ArrayBuffer) silently sends {} as JSON

2 participants